Use g_object_unref instead of deprecated gdk_pixmap_unref

This commit is contained in:
Kjartan Maraas 2009-07-08 15:48:51 +02:00
parent 8c685884bd
commit b6b9004885
2 changed files with 8 additions and 8 deletions

View File

@ -94,7 +94,7 @@ gdk_offscreen_window_finalize (GObject *object)
offscreen->cursor = NULL; offscreen->cursor = NULL;
gdk_pixmap_unref (offscreen->pixmap); g_object_unref (offscreen->pixmap);
G_OBJECT_CLASS (gdk_offscreen_window_parent_class)->finalize (object); G_OBJECT_CLASS (gdk_offscreen_window_parent_class)->finalize (object);
} }

View File

@ -340,7 +340,7 @@ test_gcs (void)
pixmap = gdk_pixmap_new (NULL, 1, 1, 1); pixmap = gdk_pixmap_new (NULL, 1, 1, 1);
black_bitmap_gc = gdk_gc_new (pixmap); black_bitmap_gc = gdk_gc_new (pixmap);
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
/* Create pixmaps, check that properties are as expected. /* Create pixmaps, check that properties are as expected.
@ -370,7 +370,7 @@ test_pixmaps (gint depth)
QTEST (image->height == height); QTEST (image->height == height);
QTEST (image->depth == depth); QTEST (image->depth == depth);
gdk_image_destroy (image); gdk_image_destroy (image);
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
TEST (retval); TEST (retval);
} }
@ -569,7 +569,7 @@ test_points (void)
gdk_gc_set_function (gcs[j], GDK_COPY); gdk_gc_set_function (gcs[j], GDK_COPY);
} }
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
pixmap = gdk_pixmap_new (w, width, height, 1); pixmap = gdk_pixmap_new (w, width, height, 1);
test_one_point_on_drawable (pixmap, black_bitmap_gc, 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); test_one_point_on_drawable (pixmap, black_bitmap_gc, 1);
} }
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
static void static void
@ -684,7 +684,7 @@ test_lines (void)
gdk_gc_set_function (gcs[j], GDK_COPY); gdk_gc_set_function (gcs[j], GDK_COPY);
} }
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
static void static void
@ -789,7 +789,7 @@ test_rectangles (void)
gdk_gc_set_function (gcs[j], GDK_COPY); gdk_gc_set_function (gcs[j], GDK_COPY);
} }
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
static void static void
@ -880,7 +880,7 @@ test_arcs (void)
gdk_gc_set_function (gcs[j], GDK_COPY); gdk_gc_set_function (gcs[j], GDK_COPY);
} }
gdk_pixmap_unref (pixmap); g_object_unref (pixmap);
} }
/* Test region operations. /* Test region operations.