summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2016-07-09 22:50:50 +0200
committerZenWalker <[email protected]>2016-07-10 03:06:03 +0200
commit83e41d48744bac1503b75036f347a740a964804d (patch)
tree3898b2c32236024342cad89ea27b39fe6832e3b6 /src/fr-window.c
parent1c4f7a65536c801a4fc25b920163ffdbc3aa5bb9 (diff)
downloadengrampa-83e41d48744bac1503b75036f347a740a964804d.tar.bz2
engrampa-83e41d48744bac1503b75036f347a740a964804d.tar.xz
replace WindowList with gtk_application_get_windows
file-roller commit: https://git.gnome.org/browse/file-roller/commit/?id=f4f31f1c9e897fe32114d2ef1b21e232231c3a3b
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 1ddc30e..17941db 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -654,11 +654,7 @@ fr_window_finalize (GObject *object)
window->priv = NULL;
}
- WindowList = g_list_remove (WindowList, window);
-
- G_OBJECT_CLASS (parent_class)->finalize (object);
-
- if (WindowList == NULL) {
+ if (gtk_application_get_windows (GTK_APPLICATION (g_application_get_default ())) == NULL) {
if (pixbuf_hash != NULL) {
g_hash_table_foreach (pixbuf_hash,
gh_unref_pixbuf,
@@ -674,6 +670,8 @@ fr_window_finalize (GObject *object)
tree_pixbuf_hash = NULL;
}
}
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
@@ -812,8 +810,6 @@ fr_window_init (FrWindow *window)
"unrealize",
G_CALLBACK (fr_window_unrealized),
NULL);
-
- WindowList = g_list_prepend (WindowList, window);
}