disconnect from the "paint-info" combo-box before destroying the dialog.

2009-03-07  Sven Neumann  <sven@gimp.org>

	* app/dialogs/stroke-dialog.c (stroke_dialog_response): 
disconnect
	from the "paint-info" combo-box before destroying the dialog. 
The
	GimpContainerView emits "select-item" from its dispose handler.


svn path=/trunk/; revision=28125
This commit is contained in:
Sven Neumann 2009-03-07 12:11:44 +00:00 committed by Sven Neumann
parent df8c8610a9
commit eebd0f90f6
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2009-03-07 Sven Neumann <sven@gimp.org>
* app/dialogs/stroke-dialog.c (stroke_dialog_response): disconnect
from the "paint-info" combo-box before destroying the dialog. The
GimpContainerView emits "select-item" from its dispose handler.
2009-03-07 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcontainercombobox.c

View file

@ -262,20 +262,21 @@ stroke_dialog_response (GtkWidget *widget,
GimpItem *item;
GimpImage *image;
GimpContext *context;
GtkWidget *combo;
item = g_object_get_data (G_OBJECT (dialog), "gimp-item");
item = g_object_get_data (G_OBJECT (dialog), "gimp-item");
options = g_object_get_data (G_OBJECT (dialog), "gimp-stroke-options");
combo = g_object_get_data (G_OBJECT (dialog), "gimp-tool-menu");;
image = gimp_item_get_image (item);
context = GIMP_VIEWABLE_DIALOG (dialog)->context;
switch (response_id)
{
case RESPONSE_RESET:
{
GimpToolInfo *tool_info = gimp_context_get_tool (context);
GtkWidget *combo = g_object_get_data (G_OBJECT (dialog),
"gimp-tool-menu");;
gimp_config_reset (GIMP_CONFIG (options));
@ -331,6 +332,10 @@ stroke_dialog_response (GtkWidget *widget,
/* fallthrough */
default:
g_signal_handlers_disconnect_by_func (combo,
G_CALLBACK (stroke_dialog_paint_info_selected),
options);
gtk_widget_destroy (dialog);
break;
}