summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-io.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2004-02-08 09:13:18 +0000
committerManish Singh <yosh@src.gnome.org>2004-02-08 09:13:18 +0000
commit4bd1fa5ff32454f8c6c61372ef898ca5f7860a63 (patch)
treebb7c4c1b81f09a69781961d50e01d9d46d8c0357 /gdk-pixbuf/gdk-pixbuf-io.c
parent41e49106e3b7be22d8697ed36ab35f4edd97feed (diff)
downloadgtk+-4bd1fa5ff32454f8c6c61372ef898ca5f7860a63.tar.gz
removed unnecessary G_OBJECT() cast checks.
Sun Feb 8 01:07:20 2004 Manish Singh <yosh@gimp.org> * gdk-pixbuf-io.c: removed unnecessary G_OBJECT() cast checks. * io-jpeg.c: make the return type for to_callback_empty_output_buffer "boolean", which should be defined by the jpeg headers. The right return type for this function depends on how the jpeg library was built (one wonders what happens if different compilers are used).
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 11abe65dbe..4ec06195b9 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -884,7 +884,7 @@ gdk_pixbuf_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;
}
}
@@ -892,14 +892,14 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
fclose (f);
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);
g_set_error (error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_FAILED,
@@ -910,7 +910,7 @@ gdk_pixbuf_new_from_file_at_size (const char *filename,
g_object_ref (pixbuf);
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
return pixbuf;
}
@@ -956,7 +956,6 @@ gdk_pixbuf_get_file_info (const gchar *filename,
gint *height)
{
GdkPixbufLoader *loader;
- GError *temp = NULL;
guchar buffer [4096];
int length;
FILE *f;
@@ -992,7 +991,7 @@ gdk_pixbuf_get_file_info (const gchar *filename,
fclose (f);
gdk_pixbuf_loader_close (loader, NULL);
- g_object_unref (G_OBJECT (loader));
+ g_object_unref (loader);
if (width)
*width = info.width;