summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c8
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;