[gimp] app: have proper titles in the GEGL filter settings import/export dialogs



commit 06a4d2e29feff640b38bd8aa07a615483e3aaaa0
Author: Michael Natterer <mitch gimp org>
Date:   Sat Mar 9 20:34:15 2013 +0100

    app: have proper titles in the GEGL filter settings import/export dialogs
    
    "Import foo" and "Export foo" were just not good enough...

 app/tools/gimpoperationtool.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpoperationtool.c b/app/tools/gimpoperationtool.c
index d28e029..734888d 100644
--- a/app/tools/gimpoperationtool.c
+++ b/app/tools/gimpoperationtool.c
@@ -250,6 +250,8 @@ gimp_operation_tool_get_settings_ui (GimpImageMapTool  *image_map_tool,
   GtkWidget         *widget;
   gchar             *basename;
   gchar             *filename;
+  gchar             *import_title;
+  gchar             *export_title;
 
   settings = gimp_gegl_get_config_container (type);
   if (! gimp_list_get_sort_func (GIMP_LIST (settings)))
@@ -260,17 +262,22 @@ gimp_operation_tool_get_settings_ui (GimpImageMapTool  *image_map_tool,
   filename = g_build_filename (gimp_directory (), "filters", basename, NULL);
   g_free (basename);
 
+  import_title = g_strdup_printf (_("Import '%s' Settings"), tool->dialog_desc);
+  export_title = g_strdup_printf (_("Export '%s' Settings"), tool->dialog_desc);
+
   widget =
     GIMP_IMAGE_MAP_TOOL_CLASS (parent_class)->get_settings_ui (image_map_tool,
                                                                settings,
                                                                filename,
-                                                               "Import foo",
-                                                               "Export foo",
+                                                               import_title,
+                                                               export_title,
                                                                "help-foo",
                                                                g_get_home_dir (),
                                                                settings_box);
 
   g_free (filename);
+  g_free (import_title);
+  g_free (export_title);
 
   return widget;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]