diff options
author | ZenWalker <[email protected]> | 2016-07-09 22:50:29 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2016-07-10 03:05:56 +0200 |
commit | 1c4f7a65536c801a4fc25b920163ffdbc3aa5bb9 (patch) | |
tree | 8ba2c02f6be4ba13d8e3d92b498a84508e0bd21e /src/fr-window.c | |
parent | 134ab265dec2de6b1668a55d6164de265e5b3f99 (diff) | |
download | engrampa-1c4f7a65536c801a4fc25b920163ffdbc3aa5bb9.tar.bz2 engrampa-1c4f7a65536c801a4fc25b920163ffdbc3aa5bb9.tar.xz |
Use GtkApplication
file-roller commits:
https://git.gnome.org/browse/file-roller/commit/?id=b0223c4ab5bc7ce98a3747624fd1bbc298915a94
https://git.gnome.org/browse/file-roller/commit/?id=6d03df7fdfdab9089ced1ca7682ec7ffffa1bbc7
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index df03e6c..1ddc30e 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -244,7 +244,7 @@ enum { LAST_SIGNAL }; -static GtkWindowClass *parent_class = NULL; +static GtkApplicationWindowClass *parent_class = NULL; static guint fr_window_signals[LAST_SIGNAL] = { 0 }; struct _FrWindowPrivateData { @@ -673,8 +673,6 @@ fr_window_finalize (GObject *object) g_hash_table_destroy (tree_pixbuf_hash); tree_pixbuf_hash = NULL; } - - gtk_main_quit (); } } @@ -837,7 +835,7 @@ fr_window_get_type (void) (GInstanceInitFunc) fr_window_init }; - type = g_type_register_static (GTK_TYPE_WINDOW, + type = g_type_register_static (GTK_TYPE_APPLICATION_WINDOW, "FrWindow", &type_info, 0); @@ -6065,7 +6063,7 @@ fr_window_new (void) { GtkWidget *window; - window = g_object_new (FR_TYPE_WINDOW, NULL); + window = g_object_new (FR_TYPE_WINDOW, "application", g_application_get_default (), NULL); fr_window_construct ((FrWindow*) window); return window; |