[gtk+] Use g_object_unref instead of deprecated gdk_pixmap_unref



commit b6b9004885c2df890058517c5e7986be4929e21e
Author: Kjartan Maraas <kmaraas gnome org>
Date:   Wed Jul 8 15:48:51 2009 +0200

    Use g_object_unref instead of deprecated gdk_pixmap_unref

 gdk/gdkoffscreenwindow.c |    2 +-
 gdk/testgdk.c            |   14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 03d8fe0..f14f831 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -94,7 +94,7 @@ gdk_offscreen_window_finalize (GObject *object)
 
   offscreen->cursor = NULL;
 
-  gdk_pixmap_unref (offscreen->pixmap);
+  g_object_unref (offscreen->pixmap);
 
   G_OBJECT_CLASS (gdk_offscreen_window_parent_class)->finalize (object);
 }
diff --git a/gdk/testgdk.c b/gdk/testgdk.c
index 6a38b54..c7ca87b 100644
--- a/gdk/testgdk.c
+++ b/gdk/testgdk.c
@@ -340,7 +340,7 @@ test_gcs (void)
 
   pixmap = gdk_pixmap_new (NULL, 1, 1, 1);
   black_bitmap_gc = gdk_gc_new (pixmap);
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
 }
 
 /* Create pixmaps, check that properties are as expected.
@@ -370,7 +370,7 @@ test_pixmaps (gint depth)
 	QTEST (image->height == height);
 	QTEST (image->depth == depth);
 	gdk_image_destroy (image);
-	gdk_pixmap_unref (pixmap);
+	g_object_unref (pixmap);
       }
   TEST (retval);
 }
@@ -569,7 +569,7 @@ test_points (void)
 	  gdk_gc_set_function (gcs[j], GDK_COPY);
 	}
   
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
   
   pixmap = gdk_pixmap_new (w, width, height, 1);
   test_one_point_on_drawable (pixmap, black_bitmap_gc, 1);
@@ -579,7 +579,7 @@ test_points (void)
       test_one_point_on_drawable (pixmap, black_bitmap_gc, 1);
     }
 
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
 }
 
 static void
@@ -684,7 +684,7 @@ test_lines (void)
 	    gdk_gc_set_function (gcs[j], GDK_COPY);
 	  }
 
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
 }
 
 static void
@@ -789,7 +789,7 @@ test_rectangles (void)
 	    gdk_gc_set_function (gcs[j], GDK_COPY);
 	  }
   
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
 }
 
 static void
@@ -880,7 +880,7 @@ test_arcs (void)
 	    gdk_gc_set_function (gcs[j], GDK_COPY);
 	  }
 
-  gdk_pixmap_unref (pixmap);
+  g_object_unref (pixmap);
 }
 
 /* Test region operations.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]