From c810a1e074736711bb70ed3b2910ef0147541899 Mon Sep 17 00:00:00 2001 From: Leonardo Robol Date: Fri, 7 Sep 2012 22:06:42 +0200 Subject: Use g_application_quit to exit the GtkApplication. --- src/trg-main-window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) -- cgit v1.2.3