forked from AuroraMiddleware/gtk
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:
parent
2bca4a48d0
commit
23b37da67d
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user