Commit 05e39069 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

reset the tool-options before loading the user settings. Don't warn if

2003-03-26  Sven Neumann  <sven@gimp.org>

	* app/gui/tool-options-dialog.c (tool_options_dialog_restore_callback):
	reset the tool-options before loading the user settings. Don't warn if
	loading fails.
parent 42a21519
2003-03-26 Sven Neumann <sven@gimp.org>
* app/gui/tool-options-dialog.c (tool_options_dialog_restore_callback):
reset the tool-options before loading the user settings. Don't warn if
loading fails.
2003-03-26 Sven Neumann <sven@gimp.org>
 
* app/widgets/gimpfontselection-dialog.c
......@@ -261,18 +261,17 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
GimpContext *context)
{
GimpToolInfo *tool_info;
GError *error = NULL;
tool_info = gimp_context_get_tool (context);
if (! tool_info)
return;
if (! gimp_tool_options_deserialize (tool_info->tool_options, "user", &error))
{
g_message ("EEK: %s\n", error->message);
g_clear_error (&error);
}
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
gimp_tool_options_reset (tool_info->tool_options);
gimp_tool_options_deserialize (tool_info->tool_options, "user", NULL);
}
static void
......
......@@ -261,18 +261,17 @@ tool_options_dialog_restore_callback (GtkWidget *widget,
GimpContext *context)
{
GimpToolInfo *tool_info;
GError *error = NULL;
tool_info = gimp_context_get_tool (context);
if (! tool_info)
return;
if (! gimp_tool_options_deserialize (tool_info->tool_options, "user", &error))
{
g_message ("EEK: %s\n", error->message);
g_clear_error (&error);
}
/* Need to reset the tool-options since only the changes
* from the default values are written to disk.
*/
gimp_tool_options_reset (tool_info->tool_options);
gimp_tool_options_deserialize (tool_info->tool_options, "user", NULL);
}
static void
......
Supports Markdown
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