Commit 23b37da6 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent 2bca4a48
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
......
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
......
......@@ -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 */
......
Markdown is supported
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