]> Pileus Git - ~andy/gtk/blobdiff - docs/tutorial/gtk_tut_12.es.sgml
Use g_object_ref/unref instead deprecated gdk_*_ref/unref functions
[~andy/gtk] / docs / tutorial / gtk_tut_12.es.sgml
index 74b4827aa66821c5cbb2489e790a0c3f7153dd34..cca7bd9a7f023539dc268a0364bfefc993c569da 100755 (executable)
@@ -4061,7 +4061,7 @@ static const char * xpm_data[] = {
 
 Cuando hayamos acabado de usar un <em/pixmap/ y no lo vayamos a usar
 durante un tiempo suele ser conveniente liberar el recurso mediante
-gdk_pixmap_unref(). (Los <em/pixmaps/ deben ser considerados recursos
+g_object_unref(). (Los <em/pixmaps/ deben ser considerados recursos
 preciosos).
 
 Una vez que hemos creado el <em/pixmap/ lo podemos mostrar como un
@@ -13967,7 +13967,7 @@ static gint
 configure_event (GtkWidget *widget, GdkEventConfigure *event)
 {
   if (pixmap)
-    gdk_pixmap_unref(pixmap);
+    g_object_unref(pixmap);
 
   pixmap = gdk_pixmap_new(widget->window,
                          widget->allocation.width,
@@ -16855,7 +16855,7 @@ static gint
 configure_event (GtkWidget *widget, GdkEventConfigure *event)
 {
   if (pixmap)
-    gdk_pixmap_unref(pixmap);
+    g_object_unref(pixmap);
 
   pixmap = gdk_pixmap_new(widget->window,
                          widget->allocation.width,