diff options
author | Manish Singh <yosh@gimp.org> | 2004-08-19 00:25:27 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2004-08-19 00:25:27 +0000 |
commit | a1f93eb16c699b60818e950953a50a73fb59759e (patch) | |
tree | 705c8cc2aa74d1a5be9aa06f8c637ac498b6f3ab /demos/testpixbuf-save.c | |
parent | ba6fc3ccd8358a451bcd1f0eb40eda2b67ad4f2b (diff) | |
download | gtk+-a1f93eb16c699b60818e950953a50a73fb59759e.tar.gz |
demos/testpixbuf-save.c Get rid of some unnecessary casts.
Wed Aug 18 17:25:26 2004 Manish Singh <yosh@gimp.org>
* demos/testpixbuf-save.c
* demos/gtk-demo/hypertext.c: Get rid of some unnecessary casts.
* demos/gtk-demo/appwindow.c: Make activate_email and activate_url
match the arguments for GtkAboutDialogActivateLinkFunc.
Diffstat (limited to 'demos/testpixbuf-save.c')
-rw-r--r-- | demos/testpixbuf-save.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/testpixbuf-save.c b/demos/testpixbuf-save.c index 1c2cfa41f2..a8893f90eb 100644 --- a/demos/testpixbuf-save.c +++ b/demos/testpixbuf-save.c @@ -85,7 +85,7 @@ buffer_to_pixbuf (const gchar *buf, gsize count, GError **err) if (gdk_pixbuf_loader_write (loader, buf, count, err) && gdk_pixbuf_loader_close (loader, err)) { pixbuf = g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader)); - g_object_unref (G_OBJECT (loader)); + g_object_unref (loader); return pixbuf; } else { return NULL; @@ -138,7 +138,7 @@ keypress_check (GtkWidget *widget, GdkEventKey *evt, gpointer data) do_compare (pixbuf, g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader)), err); - g_object_unref (G_OBJECT (loader)); + g_object_unref (loader); } } else if (evt->keyval == 'S') { @@ -194,7 +194,7 @@ keypress_check (GtkWidget *widget, GdkEventKey *evt, gpointer data) do_compare (pixbuf, g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader)), err); - g_object_unref (G_OBJECT (loader)); + g_object_unref (loader); } } else if (evt->keyval == 'P') { @@ -248,7 +248,7 @@ keypress_check (GtkWidget *widget, GdkEventKey *evt, gpointer data) do_compare (pixbuf, g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader)), err); - g_object_unref (G_OBJECT (loader)); + g_object_unref (loader); } } else if (evt->keyval == 'I') { |