2004-02-25  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpimagemaptool.c: cleanup.

	* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): added 2px
	spacing between the pick buttons and their entries.
This commit is contained in:
Michael Natterer 2004-02-25 15:56:50 +00:00 committed by Michael Natterer
parent b25c64c5e4
commit 4ae2c548d6
3 changed files with 15 additions and 14 deletions

View File

@ -1,3 +1,10 @@
2004-02-25 Michael Natterer <mitch@gimp.org>
* app/tools/gimpimagemaptool.c: cleanup.
* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): added 2px
spacing between the pick buttons and their entries.
2004-02-25 Michael Natterer <mitch@gimp.org>
* app/tools/gimpimagemaptool.[ch]: moved "shell_desc" from

View File

@ -363,9 +363,7 @@ static gboolean
gimp_image_tool_settings_load (GimpImageMapTool *tool,
gpointer file)
{
GimpImageMapToolClass *tool_class;
tool_class = GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool);
GimpImageMapToolClass *tool_class = GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool);
g_return_val_if_fail (tool_class->settings_load != NULL, FALSE);
@ -382,9 +380,7 @@ static gboolean
gimp_image_tool_settings_save (GimpImageMapTool *tool,
gpointer file)
{
GimpImageMapToolClass *tool_class;
tool_class = GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool);
GimpImageMapToolClass *tool_class = GIMP_IMAGE_MAP_TOOL_GET_CLASS (tool);
g_return_val_if_fail (tool_class->settings_save != NULL, FALSE);
@ -530,8 +526,7 @@ settings_dialog_response (GtkWidget *dialog,
gint response_id,
GimpImageMapTool *tool)
{
GimpImageMapOptions *options;
gboolean save;
gboolean save;
save = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (dialog), "save"));
@ -554,10 +549,9 @@ settings_dialog_response (GtkWidget *dialog,
return;
}
options = GIMP_IMAGE_MAP_OPTIONS (GIMP_TOOL (tool)->tool_info->tool_options);
g_free (options->settings);
options->settings = g_strdup (filename);
g_object_set (GIMP_TOOL (tool)->tool_info->tool_options,
"settings", filename,
NULL);
if (save)
{

View File

@ -498,7 +498,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (hbox);
/* low input spin */
hbox2 = gtk_hbox_new (FALSE, 0);
hbox2 = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, FALSE, 0);
gtk_widget_show (hbox2);
@ -533,7 +533,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
tool);
/* high input spin */
hbox2 = gtk_hbox_new (FALSE, 0);
hbox2 = gtk_hbox_new (FALSE, 2);
gtk_box_pack_end (GTK_BOX (hbox), hbox2, FALSE, FALSE, 0);
gtk_widget_show (hbox2);