gimp r25755 - in trunk: . app/tools
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25755 - in trunk: . app/tools
- Date: Thu, 22 May 2008 15:39:00 +0000 (UTC)
Author: mitch
Date: Thu May 22 15:39:00 2008
New Revision: 25755
URL: http://svn.gnome.org/viewvc/gimp?rev=25755&view=rev
Log:
2008-05-22 Michael Natterer <mitch gimp org>
* app/tools/gimpimagemaptool.c: check if the tool class has
the "settings_name" string set to decide whether to add
the settings GUI.
* app/tools/gimpdesaturatetool.c
* app/tools/gimpposterizetool.c: don't set any settings
strings. Presets make no sense for tools with just one parameter.
Modified:
trunk/ChangeLog
trunk/app/tools/gimpdesaturatetool.c
trunk/app/tools/gimpimagemaptool.c
trunk/app/tools/gimpposterizetool.c
Modified: trunk/app/tools/gimpdesaturatetool.c
==============================================================================
--- trunk/app/tools/gimpdesaturatetool.c (original)
+++ trunk/app/tools/gimpdesaturatetool.c Thu May 22 15:39:00 2008
@@ -88,16 +88,13 @@
GimpToolClass *tool_class = GIMP_TOOL_CLASS (klass);
GimpImageMapToolClass *im_tool_class = GIMP_IMAGE_MAP_TOOL_CLASS (klass);
- tool_class->initialize = gimp_desaturate_tool_initialize;
+ tool_class->initialize = gimp_desaturate_tool_initialize;
- im_tool_class->shell_desc = _("Desaturate (Remove Colors)");
- im_tool_class->settings_name = "desaturate";
- im_tool_class->import_dialog_title = _("Import Desaturate Settings");
- im_tool_class->export_dialog_title = _("Export Desaturate Settings");
-
- im_tool_class->get_operation = gimp_desaturate_tool_get_operation;
- im_tool_class->map = gimp_desaturate_tool_map;
- im_tool_class->dialog = gimp_desaturate_tool_dialog;
+ im_tool_class->shell_desc = _("Desaturate (Remove Colors)");
+
+ im_tool_class->get_operation = gimp_desaturate_tool_get_operation;
+ im_tool_class->map = gimp_desaturate_tool_map;
+ im_tool_class->dialog = gimp_desaturate_tool_dialog;
}
static void
Modified: trunk/app/tools/gimpimagemaptool.c
==============================================================================
--- trunk/app/tools/gimpimagemaptool.c (original)
+++ trunk/app/tools/gimpimagemaptool.c Thu May 22 15:39:00 2008
@@ -304,7 +304,7 @@
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (shell)->vbox), vbox);
- if (image_map_tool->config)
+ if (klass->settings_name)
gimp_image_map_tool_add_settings_gui (image_map_tool);
/* The preview toggle */
Modified: trunk/app/tools/gimpposterizetool.c
==============================================================================
--- trunk/app/tools/gimpposterizetool.c (original)
+++ trunk/app/tools/gimpposterizetool.c Thu May 22 15:39:00 2008
@@ -96,18 +96,15 @@
GimpToolClass *tool_class = GIMP_TOOL_CLASS (klass);
GimpImageMapToolClass *im_tool_class = GIMP_IMAGE_MAP_TOOL_CLASS (klass);
- object_class->finalize = gimp_posterize_tool_finalize;
+ object_class->finalize = gimp_posterize_tool_finalize;
- tool_class->initialize = gimp_posterize_tool_initialize;
+ tool_class->initialize = gimp_posterize_tool_initialize;
- im_tool_class->shell_desc = _("Posterize (Reduce Number of Colors)");
- im_tool_class->settings_name = "posterize";
- im_tool_class->import_dialog_title = _("Import Posterize Settings");
- im_tool_class->export_dialog_title = _("Export Posterize Settings");
-
- im_tool_class->get_operation = gimp_posterize_tool_get_operation;
- im_tool_class->map = gimp_posterize_tool_map;
- im_tool_class->dialog = gimp_posterize_tool_dialog;
+ im_tool_class->shell_desc = _("Posterize (Reduce Number of Colors)");
+
+ im_tool_class->get_operation = gimp_posterize_tool_get_operation;
+ im_tool_class->map = gimp_posterize_tool_map;
+ im_tool_class->dialog = gimp_posterize_tool_dialog;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]