]> Pileus Git - ~andy/gtk/commitdiff
migrating-2to3: Add more words about GtkObject
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 27 Jan 2013 22:22:53 +0000 (17:22 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 28 Jan 2013 17:45:01 +0000 (12:45 -0500)
Talk about replacing the various function calls of GtkObject with
GObject or GtkWidget calls.

docs/reference/gtk/migrating-2to3.xml

index 34f4f92c32d349d63b17687cad39c9c431dcb8d4..a273b0b44b6c408a25295d0cfc2a5244dadc8f44 100644 (file)
@@ -1171,6 +1171,15 @@ gtk_arrow_draw (GtkWidget *widget,
       from GtkObject and makes use of the destroy functionality, you have
       to implement ::destroy yourself.
     </para>
+
+    <para>
+      If your program used functions like gtk_object_get or gtk_object_set,
+      these can be replaced directly with g_object_get or g_object_set. In
+      fact, most every gtk_object_* function can be replaced with the
+      corresponding g_object_ function, even in GTK+ 2 code. The one exception
+      to this rule is gtk_object_destroy, which can be replaced with
+      gtk_widget_destroy, again in both GTK+ 2 and GTK+ 3.
+    </para>
   </section>
 
   <section>