summaryrefslogtreecommitdiff
path: root/tests/testfilechooser.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2004-11-19 23:30:47 +0000
committerManish Singh <yosh@src.gnome.org>2004-11-19 23:30:47 +0000
commit54b45a19b92629605abdcc6d14c1b1c3a1e941af (patch)
treeffdcd2e9e818624318aff304dea3cee4c169a6aa /tests/testfilechooser.c
parent60b30ff5136acffc66b9e4fe27fb2509011ca896 (diff)
downloadgtk+-54b45a19b92629605abdcc6d14c1b1c3a1e941af.tar.gz
modules/engines/ms-windows/msw_rc_style.c
Fri Nov 19 15:18:51 2004 Manish Singh <yosh@gimp.org> * modules/engines/ms-windows/msw_rc_style.c * modules/engines/ms-windows/msw_style.c * modules/engines/ms-windows/msw_theme_main.c * modules/engines/pixbuf/pixbuf-main.c * modules/engines/pixbuf/pixbuf-rc-style.c * modules/input/gtkimcontextime.c * modules/input/gtkimcontextxim.c * modules/input/imam-et.c * modules/input/imcedilla.c * modules/input/imcyrillic-translit.c * modules/input/iminuktitut.c * modules/input/imipa.c * modules/input/imthai-broken.c * modules/input/imti-er.c * modules/input/imti-et.c * modules/input/imviqr.c * tests/prop-editor.c * tests/testentrycompletion.c * tests/testfilechooser.c * tests/testmerge.c * tests/testtoolbar.c * tests/testtreecolumns.c * tests/testtreeview.c: get rid of unnecessary casts. * tests/testgtk.c (create_labels): add GTK_LABEL() casts for gtk_label_set_ellipsize() calls. * tests/testicontheme.c (main): remove unused pixbuf variable.
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r--tests/testfilechooser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 7910c61a8f..01089b24c7 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -216,7 +216,7 @@ my_new_from_file_at_size (const char *filename,
if (!gdk_pixbuf_loader_write (loader, buffer, length, error)) {
gdk_pixbuf_loader_close (loader, NULL);
fclose (f);
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
return NULL;
}
}
@@ -225,14 +225,14 @@ my_new_from_file_at_size (const char *filename,
g_assert (*error == NULL);
if (!gdk_pixbuf_loader_close (loader, error)) {
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
return NULL;
}
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
if (!pixbuf) {
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
/* did the loader set an error? */
if (*error != NULL)
@@ -248,7 +248,7 @@ my_new_from_file_at_size (const char *filename,
g_object_ref (pixbuf);
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
return pixbuf;
}
@@ -572,7 +572,7 @@ main (int argc, char **argv)
gtk_widget_show_all (control_window);
g_object_ref (control_window);
- g_signal_connect (G_OBJECT (dialog), "destroy",
+ g_signal_connect (dialog, "destroy",
G_CALLBACK (kill_dependent), control_window);
/* We need to hold a ref until we have destroyed the widgets, just in case