[maemo-commits] [maemo-commits] r11808 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu May 24 14:33:18 EEST 2007
Author: xan
Date: 2007-05-24 14:33:17 +0300 (Thu, 24 May 2007)
New Revision: 11808

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-note.c
Log:
	* src/hildon-note.c (hildon_note_init): Use g_object_ref_sink
	instead of g_object_ref + gtk_object_sink.


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2007-05-24 10:51:28 UTC (rev 11807)
+++ projects/haf/trunk/hildon-1/ChangeLog	2007-05-24 11:33:17 UTC (rev 11808)
@@ -1,3 +1,8 @@
+2007-05-24  Xan Lopez  <xan.lopez at 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 at nokia.com> 
 
 	[1.0.6-1 release]

Modified: projects/haf/trunk/hildon-1/src/hildon-note.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-note.c	2007-05-24 10:51:28 UTC (rev 11807)
+++ projects/haf/trunk/hildon-1/src/hildon-note.c	2007-05-24 11:33:17 UTC (rev 11808)
@@ -353,12 +353,9 @@
     /* 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);
+    g_object_ref_sink (priv->label);
+    g_object_ref_sink (priv->icon);
 
-    gtk_object_sink (GTK_OBJECT (priv->label));
-    gtk_object_sink (GTK_OBJECT (priv->icon));
-
     gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
     gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 }


More information about the maemo-commits mailing list