app: really really destroy the tool options widgets this time

This commit is contained in:
Michael Natterer 2010-06-24 18:36:25 +02:00
parent 44e6acbef8
commit c448cc7d25
1 changed files with 8 additions and 4 deletions

View File

@ -235,7 +235,10 @@ gimp_tools_exit (Gimp *gimp)
options_gui = g_object_get_data (G_OBJECT (tool_info->tool_options),
"gimp-tool-options-gui");
g_object_unref (options_gui);
gtk_widget_destroy (options_gui);
g_object_set_data (G_OBJECT (tool_info->tool_options),
"gimp-tool-options-gui", NULL);
}
tool_manager_exit (gimp);
@ -355,9 +358,10 @@ gimp_tools_restore (Gimp *gimp)
gtk_widget_show (label);
}
g_object_set_data (G_OBJECT (tool_info->tool_options),
"gimp-tool-options-gui",
g_object_ref_sink (options_gui));
g_object_set_data_full (G_OBJECT (tool_info->tool_options),
"gimp-tool-options-gui",
g_object_ref_sink (options_gui),
(GDestroyNotify) g_object_unref);
if (tool_info->presets)
gimp_tool_presets_load (tool_info->presets, NULL);