[gnome-calendar] application: properly quit application



commit fb2461b813e2cac37464d0a828c3c55530ce4e02
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Fri Oct 17 00:54:04 2014 -0400

    application: properly quit application
    
    Fixes destruction process. Calling g_application_quit skip the reference
    decreasing process of GApplication and that resulted in a bunch of
    _finalize methods not being called. By removing the windows GApplication
    finalize properly.

 src/gcal-application.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index 0b743e5..7254a8d 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -329,7 +329,12 @@ gcal_application_quit (GSimpleAction *simple,
                        GVariant      *parameter,
                        gpointer       user_data)
 {
-  g_application_quit (G_APPLICATION (user_data));
+  GcalApplicationPrivate *priv;
+
+  priv =
+    gcal_application_get_instance_private (GCAL_APPLICATION (user_data));
+
+  gtk_widget_destroy (priv->window);
 }
 
 /* Public API */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]