summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trg-main-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 914d061..6189fb7 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -421,7 +421,11 @@ destroy_window(TrgMainWindow * win, gpointer data G_GNUC_UNUSED)
TRG_TREE_VIEW_PERSIST_LAYOUT);
trg_prefs_save(prefs);
+#if ! GTK_CHECK_VERSION( 3, 0, 0 )
gtk_main_quit();
+#else
+ g_application_quit (g_application_get_default ());
+#endif
}
static void open_props_cb(GtkWidget * w G_GNUC_UNUSED, TrgMainWindow * win)