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/gtk_tut_12.es.sgml | |
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/gtk_tut_12.es.sgml')
-rwxr-xr-x | docs/tutorial/gtk_tut_12.es.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |