diff options
author | Leonardo Robol <leo@robol.it> | 2012-09-07 22:06:42 +0200 |
---|---|---|
committer | Leonardo Robol <leo@robol.it> | 2012-09-07 22:06:42 +0200 |
commit | c810a1e074736711bb70ed3b2910ef0147541899 (patch) | |
tree | fabfeaf52ff612502aff38cb9edbc091388dbadb | |
parent | 4fc20871927c10f63b4b6d650549ba3007ab5373 (diff) |
Use g_application_quit to exit the GtkApplication.
-rw-r--r-- | src/trg-main-window.c | 4 |
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) |