Handle the case where the filechooser button is destroyed quickly.

2006-08-17  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (set_info_get_info_cb)
	(model_add_special_get_info_cb): Handle the case where the
	filechooser button is destroyed quickly.
This commit is contained in:
Matthias Clasen 2006-08-17 04:42:27 +00:00 committed by Matthias Clasen
parent 2bca4a48d0
commit 23b37da67d
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-08-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (set_info_get_info_cb)
(model_add_special_get_info_cb): Handle the case where the
filechooser button is destroyed quickly.
2006-08-17 Paolo Borelli <pborelli@katamail.com>
* gtk/gtktextbuffer.c: make sure the has-selection property is

View File

@ -1,3 +1,9 @@
2006-08-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (set_info_get_info_cb)
(model_add_special_get_info_cb): Handle the case where the
filechooser button is destroyed quickly.
2006-08-17 Paolo Borelli <pborelli@katamail.com>
* gtk/gtktextbuffer.c: make sure the has-selection property is

View File

@ -1397,6 +1397,10 @@ set_info_get_info_cb (GtkFileSystemHandle *handle,
GtkFileSystemHandle *model_handle;
struct SetDisplayNameData *data = callback_data;
if (!data->button->priv->model)
/* button got destroyed */
goto out;
path = gtk_tree_row_reference_get_path (data->row_ref);
if (!path)
/* Handle doesn't exist anymore in the model */
@ -1565,6 +1569,10 @@ model_add_special_get_info_cb (GtkFileSystemHandle *handle,
GtkFileSystemHandle *model_handle;
struct ChangeIconThemeData *data = user_data;
if (!data->button->priv->model)
/* button got destroyed */
goto out;
path = gtk_tree_row_reference_get_path (data->row_ref);
if (!path)
/* Handle doesn't exist anymore in the model */