summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-27 17:22:53 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-01-28 12:45:01 -0500
commit99828efa50707410560ce6bb1213a6b4c4fd33d1 (patch)
tree850948ea44908f1741c40f47d00d20f01b52a1b9 /docs
parent2397521d29ed7af94a847bdcaa943f51c63fff15 (diff)
downloadgtk+-99828efa50707410560ce6bb1213a6b4c4fd33d1.tar.gz
migrating-2to3: Add more words about GtkObject
Talk about replacing the various function calls of GtkObject with GObject or GtkWidget calls.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/migrating-2to3.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/reference/gtk/migrating-2to3.xml b/docs/reference/gtk/migrating-2to3.xml
index 34f4f92c32..a273b0b44b 100644
--- a/docs/reference/gtk/migrating-2to3.xml
+++ b/docs/reference/gtk/migrating-2to3.xml
@@ -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>