[ekiga/ds-gtk-application] GmWindow: Clear GSettings on finalize instead of dispose.



commit acb01606afd86be7409f6258acb1a59854db9e78
Author: Damien Sandras <dsandras seconix com>
Date:   Tue Nov 4 19:45:02 2014 +0100

    GmWindow: Clear GSettings on finalize instead of dispose.
    
    It might still be used in callbacks run after "dispose".

 lib/gui/gmwindow.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/gui/gmwindow.c b/lib/gui/gmwindow.c
index 7bb9afe..f374242 100644
--- a/lib/gui/gmwindow.c
+++ b/lib/gui/gmwindow.c
@@ -94,7 +94,7 @@ gm_window_configure_event (GtkWidget *widget,
  * GObject stuff
  */
 static void
-gm_window_dispose (GObject *obj)
+gm_window_finalize (GObject *obj)
 {
   GmWindow *self = NULL;
 
@@ -107,7 +107,7 @@ gm_window_dispose (GObject *obj)
     g_clear_object (&self->priv->settings);
   self->priv->settings = NULL;
 
-  G_OBJECT_CLASS (gm_window_parent_class)->dispose (obj);
+  G_OBJECT_CLASS (gm_window_parent_class)->finalize (obj);
 }
 
 
@@ -216,7 +216,7 @@ gm_window_class_init (GmWindowClass* klass)
 
   g_type_class_add_private (klass, sizeof (GmWindowPrivate));
 
-  gobject_class->dispose = gm_window_dispose;
+  gobject_class->finalize = gm_window_finalize;
   gobject_class->get_property = gm_window_get_property;
   gobject_class->set_property = gm_window_set_property;
 


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