* src/hildon-note.c (hildon_note_init): Use g_object_ref_sink instead of g_object_ref...
authorXan Lopez <xan.lopez@nokia.com>
Thu, 24 May 2007 11:33:17 +0000 (11:33 +0000)
committerXan Lopez <xan.lopez@nokia.com>
Thu, 24 May 2007 11:33:17 +0000 (11:33 +0000)
ChangeLog
src/hildon-note.c

index 3621930..b386e8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-24  Xan Lopez  <xan.lopez@nokia.com>
+
+       * src/hildon-note.c (hildon_note_init): Use g_object_ref_sink
+       instead of g_object_ref + gtk_object_sink.
+
 2007-05-22  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        [1.0.6-1 release]
index e87b732..d5e67ed 100644 (file)
@@ -353,11 +353,8 @@ hildon_note_init                                (HildonNote *dialog)
     /* Acquire real references to our internal children, since
        they are not nessecarily packed into container in each
        layout */
-    g_object_ref (priv->label);
-    g_object_ref (priv->icon);
-
-    gtk_object_sink (GTK_OBJECT (priv->label));
-    gtk_object_sink (GTK_OBJECT (priv->icon));
+    g_object_ref_sink (priv->label);
+    g_object_ref_sink (priv->icon);
 
     gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
     gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);