diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-16 03:29:03 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-16 03:29:03 +0800 |
commit | 27d6e723fd94ee4ed9d3f9ca8e6095a95a170eda (patch) | |
tree | 819b860220e3a80a5b7a30fe0ef7ac75d2b5c78b /shell/evolution-folder-selector-button.c | |
parent | a79f61ba4c36ffdb285ec1d812c83871d22e769e (diff) | |
download | gsoc2013-evolution-27d6e723fd94ee4ed9d3f9ca8e6095a95a170eda.tar.gz gsoc2013-evolution-27d6e723fd94ee4ed9d3f9ca8e6095a95a170eda.tar.zst gsoc2013-evolution-27d6e723fd94ee4ed9d3f9ca8e6095a95a170eda.zip |
No need to check for priv being NULL here anymore.
* e-activity-handler.c (impl_operationStarted): No need to check
for priv being NULL here anymore.
(impl_operationProgressing): Likewise.
(impl_operationFinished): Likewise.
(impl_requestDialog): Likewise.
* evolution-folder-selector-button.c (clicked): Use
g_object_add_weak_pointer() on the parent_window instead of using
GTK_OBJECT_DESTROYED().
svn path=/trunk/; revision=18782
Diffstat (limited to 'shell/evolution-folder-selector-button.c')
-rw-r--r-- | shell/evolution-folder-selector-button.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/evolution-folder-selector-button.c b/shell/evolution-folder-selector-button.c index 144e47afc2..39d05354e9 100644 --- a/shell/evolution-folder-selector-button.c +++ b/shell/evolution-folder-selector-button.c @@ -161,6 +161,8 @@ clicked (GtkButton *button) g_signal_emit (folder_selector_button, signals[POPPED_UP], 0); + g_object_add_weak_pointer (G_OBJECT (parent_window), (void **) &parent_window); + evolution_shell_client_user_select_folder (priv->shell_client, parent_window, priv->title, @@ -168,17 +170,15 @@ clicked (GtkButton *button) (const char **)priv->possible_types, &return_folder); -#if 0 /* FIXME */ + g_object_remove_weak_pointer (G_OBJECT (parent_window), (void **) &parent_window); + /* If the parent gets destroyed despite our best efforts (eg, * because its own parent got destroyed), then the folder * selector button will have been destroyed too and we need * to just bail out here. */ - if (GTK_OBJECT_DESTROYED (parent_window)) { - g_object_unref (parent_window); + if (parent_window == NULL) return; - } -#endif gtk_widget_set_sensitive (GTK_WIDGET (parent_window), TRUE); g_object_unref (parent_window); |