diff --git a/libgimpwidgets/gimppropwidgets.c b/libgimpwidgets/gimppropwidgets.c index df44ad9705..9f9a3b3a00 100644 --- a/libgimpwidgets/gimppropwidgets.c +++ b/libgimpwidgets/gimppropwidgets.c @@ -2421,7 +2421,7 @@ gimp_prop_file_chooser_button_callback (GtkFileChooser *button, return; value = gtk_file_chooser_get_filename (button); - utf8 = value ? g_filename_to_utf8 (value, -1, NULL, NULL, NULL) : NULL; + utf8 = value ? gimp_config_path_unexpand (value, TRUE, NULL) : NULL; g_free (value); g_object_get (config, @@ -2591,7 +2591,7 @@ gimp_prop_path_editor_path_callback (GimpPathEditor *editor, return; value = gimp_path_editor_get_path (editor); - utf8 = g_filename_to_utf8 (value, -1, NULL, NULL, NULL); + utf8 = value ? gimp_config_path_unexpand (value, TRUE, NULL) : NULL; g_free (value); g_signal_handlers_block_by_func (config, @@ -2611,7 +2611,7 @@ gimp_prop_path_editor_path_callback (GimpPathEditor *editor, if (writable_param_spec) { value = gimp_path_editor_get_writable_path (editor); - utf8 = g_filename_to_utf8 (value, -1, NULL, NULL, NULL); + utf8 = value ? gimp_config_path_unexpand (value, TRUE, NULL) : NULL; g_free (value); g_signal_handlers_block_by_func (config, @@ -2644,7 +2644,7 @@ gimp_prop_path_editor_writable_callback (GimpPathEditor *editor, return; value = gimp_path_editor_get_writable_path (editor); - utf8 = g_filename_to_utf8 (value, -1, NULL, NULL, NULL); + utf8 = value ? gimp_config_path_unexpand (value, TRUE, NULL) : NULL; g_free (value); g_signal_handlers_block_by_func (config,