diff options
author | Darin Adler <darin@src.gnome.org> | 2001-12-07 00:55:34 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-12-07 00:55:34 +0000 |
commit | 5a749ac98270580a000c42a196b917c005d63fc8 (patch) | |
tree | e79773b2b0b0424a4cb192eb016efe6cfd28e7df /test | |
parent | 60c93330fba3a0bb93d7f7d09431e94209483775 (diff) | |
download | nautilus-5a749ac98270580a000c42a196b917c005d63fc8.tar.gz |
lots of files Get rid of casts in callers to g_object_ref/g_object_unref.
* lots of files
Get rid of casts in callers to g_object_ref/g_object_unref.
Remove parameters to eel_make_warnings_and_criticals_stop_in_debugger.
Diffstat (limited to 'test')
-rw-r--r-- | test/test-nautilus-wrap-table.c | 4 | ||||
-rw-r--r-- | test/test.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/test-nautilus-wrap-table.c b/test/test-nautilus-wrap-table.c index 3e502fa68..9298a1956 100644 --- a/test/test-nautilus-wrap-table.c +++ b/test/test-nautilus-wrap-table.c @@ -68,7 +68,7 @@ main (int argc, char* argv[]) } if (strcmp (emblem_name, "erase") == 0) { - g_object_unref (G_OBJECT (pixbuf)); + g_object_unref (pixbuf); g_free (label); g_free (emblem_name); continue; @@ -76,7 +76,7 @@ main (int argc, char* argv[]) button = eel_labeled_image_check_button_new (label, pixbuf); g_free (label); - g_object_unref (G_OBJECT (pixbuf)); + g_object_unref (pixbuf); /* Attach parameters and signal handler. */ g_object_set_data_full (G_OBJECT (button), diff --git a/test/test.c b/test/test.c index fef875e42..f2e1d882a 100644 --- a/test/test.c +++ b/test/test.c @@ -130,7 +130,7 @@ test_pixbuf_new_named (const char *name, float scale) scaled = gdk_pixbuf_scale_simple (pixbuf, width, height, GDK_INTERP_BILINEAR); - g_object_unref (G_OBJECT (pixbuf)); + g_object_unref (pixbuf); g_return_val_if_fail (scaled != NULL, NULL); @@ -160,7 +160,7 @@ test_image_new (const char *pixbuf_name, if (pixbuf != NULL) { eel_image_set_pixbuf (EEL_IMAGE (image), pixbuf); - g_object_unref (G_OBJECT (pixbuf)); + g_object_unref (pixbuf); } } @@ -339,5 +339,5 @@ test_pixbuf_draw_rectangle_tiled (GdkPixbuf *pixbuf, opacity, GDK_INTERP_NEAREST); - g_object_unref (G_OBJECT (tile_pixbuf)); + g_object_unref (tile_pixbuf); } |