]> Pileus Git - ~andy/gtk/blobdiff - gdk/testgdk.c
Use g_object_unref instead of deprecated gdk_pixmap_unref
[~andy/gtk] / gdk / testgdk.c
index 6a38b54d164334cb4839c61bfbe92f59b6c56952..c7ca87bba896033c6bcb805373a59ec8724940c9 100644 (file)
@@ -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.