Commit 4ae2c548 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

cleanup.

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.
parent b25c64c5
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
......@@ -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)
{
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment