cancel all pending handles in the button list. (Fixes #341035, reported by

2006-05-16  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles
	in the button list. (Fixes #341035, reported by William Jon McCann).
This commit is contained in:
Kristian Rietveld 2006-05-16 12:36:07 +00:00 committed by Kristian Rietveld
parent c0ec5cedd8
commit 014e448e09
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles
in the button list. (Fixes #341035, reported by William Jon McCann).
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkfilechooserdefault.c

View File

@ -1,3 +1,8 @@
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkpathbar.c (gtk_path_bar_dispose): cancel all pending handles
in the button list. (Fixes #341035, reported by William Jon McCann).
2006-05-16 Kristian Rietveld <kris@imendio.com>
* gtk/gtkfilechooserdefault.c

View File

@ -250,6 +250,7 @@ remove_settings_signal (GtkPathBar *path_bar,
static void
gtk_path_bar_dispose (GObject *object)
{
GList *list;
GtkPathBar *path_bar = GTK_PATH_BAR (object);
remove_settings_signal (path_bar, gtk_widget_get_screen (GTK_WIDGET (object)));
@ -258,6 +259,15 @@ gtk_path_bar_dispose (GObject *object)
gtk_file_system_cancel_operation (path_bar->set_path_handle);
path_bar->set_path_handle = NULL;
for (list = path_bar->button_list; list; list = list->next)
{
ButtonData *button_data = BUTTON_DATA (list->data);
if (button_data->handle)
gtk_file_system_cancel_operation (button_data->handle);
button_data->handle = NULL;
}
G_OBJECT_CLASS (gtk_path_bar_parent_class)->dispose (object);
}