]> Pileus Git - ~andy/gtk/commitdiff
Use g_object_unref instead of deprecated gdk_pixmap_unref
authorKjartan Maraas <kmaraas@gnome.org>
Wed, 8 Jul 2009 13:48:51 +0000 (15:48 +0200)
committerKjartan Maraas <kmaraas@gnome.org>
Wed, 8 Jul 2009 13:48:51 +0000 (15:48 +0200)
gdk/gdkoffscreenwindow.c
gdk/testgdk.c

index 03d8fe04f2c42489f1595913d3231f6668569205..f14f831e8291f8f03d9765873f6420fe276b133f 100644 (file)
@@ -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);
 }
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.