[gthumb] browser: destroy the progress dialog in the close function
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] browser: destroy the progress dialog in the close function
- Date: Sun, 23 Jan 2011 10:29:30 +0000 (UTC)
commit eb77ed20b58dd6b3eebf96c0c9d117b7728b78a2
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jan 23 09:37:06 2011 +0100
browser: destroy the progress dialog in the close function
gthumb/gth-browser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 44b6c29..1765e92 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -2015,6 +2015,11 @@ _gth_browser_close_final_step (gpointer user_data)
gth_hook_invoke ("gth-browser-close-last-window", browser);
}
+ if (browser->priv->progress_dialog != NULL) {
+ g_object_remove_weak_pointer (G_OBJECT (browser->priv->progress_dialog), (gpointer*) &(browser->priv->progress_dialog));
+ gtk_widget_destroy (browser->priv->progress_dialog);
+ }
+
if (browser->priv->folder_popup != NULL)
gtk_widget_destroy (browser->priv->folder_popup);
if (browser->priv->file_list_popup != NULL)
@@ -2337,8 +2342,6 @@ gth_browser_finalize (GObject *object)
g_source_remove (browser->priv->selection_changed_event);
browser->priv->selection_changed_event = 0;
}
- if (browser->priv->progress_dialog != NULL)
- gtk_widget_destroy (browser->priv->progress_dialog);
_g_object_unref (browser->priv->location_source);
_g_object_unref (browser->priv->monitor_location);
_g_object_unref (browser->priv->location);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]