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
This commit is contained in:
Javier Jardón
2009-10-12 15:59:45 +02:00
committed by Javier Jardón
parent b66583f2a5
commit df9e1c3294
6 changed files with 12 additions and 21 deletions

View File

@ -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

View File

@ -8986,7 +8986,7 @@ se colapsar
tendr<EFBFBD> que hacer algo as<61>:
<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<63>n de drag-n-drop (arrastar y