diff options
author | Javier Jardón <javierjc1982@gmail.com> | 2009-10-12 15:59:45 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-14 03:30:57 +0200 |
commit | df9e1c329441bee4d066b10060660cbecd94b981 (patch) | |
tree | f77a689868544ef3fa0e5fd44d2f71007902e980 /docs/tutorial | |
parent | b66583f2a59e09ad9f27f1750b58917b243381ae (diff) | |
download | gtk+-df9e1c329441bee4d066b10060660cbecd94b981.tar.gz |
Substitute gtk_widget_ref/unref with g_object_ref/unref
Substitute the use of gtk_widget_ref/unref in documentation examples
and in internal gtk+ code
https://bugzilla.gnome.org/show_bug.cgi?id=598218
Diffstat (limited to 'docs/tutorial')
-rw-r--r-- | docs/tutorial/gtk_tut.sgml | 4 | ||||
-rwxr-xr-x | docs/tutorial/gtk_tut_12.es.sgml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/gtk_tut.sgml b/docs/tutorial/gtk_tut.sgml index 003f4c7af8..d42a349b43 100644 --- a/docs/tutorial/gtk_tut.sgml +++ b/docs/tutorial/gtk_tut.sgml @@ -9564,7 +9564,7 @@ which owns it will be collapsed. So, if you want it to stick around, do something like the following: <tscreen><verb> -gtk_widget_ref (tree); +g_object_ref (tree); owner = GTK_TREE(tree)->tree_owner; gtk_container_remove (GTK_CONTAINER(tree), item); if (tree->parent == NULL){ @@ -9572,7 +9572,7 @@ if (tree->parent == NULL){ gtk_tree_item_set_subtree (GTK_TREE_ITEM(owner), tree); } else - gtk_widget_unref (tree); + g_object_unref (tree); </verb></tscreen> Finally, drag-n-drop <em>does</em> work with TreeItems. You just diff --git a/docs/tutorial/gtk_tut_12.es.sgml b/docs/tutorial/gtk_tut_12.es.sgml index cca7bd9a7f..22ce28f870 100755 --- a/docs/tutorial/gtk_tut_12.es.sgml +++ b/docs/tutorial/gtk_tut_12.es.sgml @@ -8986,7 +8986,7 @@ se colapsará. Por lo tanto, si quiere que se mantenga el subárbol tendrá que hacer algo así: <tscreen><verb> -gtk_widget_ref (arbol); +g_object_ref (arbol); propietario = GTK_TREE(arbol)->tree_owner; gtk_container_remove (GTK_CONTAINER(arbol), item); if (arbol->parent == NULL){ @@ -8994,7 +8994,7 @@ if (arbol->parent == NULL){ gtk_tree_item_set_subtree (GTK_TREE_ITEM(propietario), arbol); } else - gtk_widget_unref (arbol); + g_object_unref (arbol); </verb></tscreen> Finalmente, hay que mencionar que la opción de drag-n-drop (arrastar y |