remember the name of the saved options and set it again after

2003-10-02  Michael Natterer  <mitch@gimp.org>

	* app/gui/tool-options-commands.c
	(tool_options_save_to_cmd_callback): remember the name of the
	saved options and set it again after gimp_config_copy_properties().
	Fixes bug #123660.
This commit is contained in:
Michael Natterer 2003-10-02 10:16:02 +00:00 committed by Michael Natterer
parent c2b8ffb12a
commit a3ab230fdc
3 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2003-10-02 Michael Natterer <mitch@gimp.org>
* app/gui/tool-options-commands.c
(tool_options_save_to_cmd_callback): remember the name of the
saved options and set it again after gimp_config_copy_properties().
Fixes bug #123660.
2003-10-02 Sven Neumann <sven@gimp.org>
* app/gui/image-menu.c: added back ellipsis to Display Filters and

View File

@ -62,9 +62,15 @@ tool_options_save_to_cmd_callback (GtkWidget *widget,
guint action)
{
GimpToolOptions *options = GIMP_TOOL_OPTIONS (data);
gchar *name;
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (options)));
gimp_config_copy_properties (G_OBJECT (options->tool_info->tool_options),
G_OBJECT (options));
gimp_object_set_name (GIMP_OBJECT (options), name);
g_free (name);
}
void

View File

@ -62,9 +62,15 @@ tool_options_save_to_cmd_callback (GtkWidget *widget,
guint action)
{
GimpToolOptions *options = GIMP_TOOL_OPTIONS (data);
gchar *name;
name = g_strdup (gimp_object_get_name (GIMP_OBJECT (options)));
gimp_config_copy_properties (G_OBJECT (options->tool_info->tool_options),
G_OBJECT (options));
gimp_object_set_name (GIMP_OBJECT (options), name);
g_free (name);
}
void