summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-10-06 18:19:18 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-10-06 18:19:18 +0000
commit6b9f9072708e6f1b41f9f75acd8d70191ad245ea (patch)
tree2a46c20b581be14650eb258c30ded238359a3c15 /gdk-pixbuf/gdk-pixbuf.c
parenta7e20093e9d6623433e764bb2aac9e40693c783d (diff)
downloadgdk-pixbuf-6b9f9072708e6f1b41f9f75acd8d70191ad245ea.tar.gz
Pixbuf saving, patch from David Welton.
2000-10-05 Havoc Pennington <hp@redhat.com> Pixbuf saving, patch from David Welton. * Makefile.am (GDK_PIXBUF_LIBS): add INTLLIBS (libgdk_pixbuf_1_3_la_SOURCES): add gdk-pixbuf-i18n.h * gdk-pixbuf-i18n.h: Add _() to gdk-pixbuf * io-png.c (gdk_pixbuf__png_image_save): PNG save routine. * io-jpeg.c (gdk_pixbuf__jpeg_image_save): JPEG save routine. * gdk-pixbuf-io.c (gdk_pixbuf_save): (gdk_pixbuf_savev): Implement pixbuf saving routines * gdk-pixbuf.c (gdk_pixbuf_error_quark): pixbuf error quark function * gdk-pixbuf.h: Add public save routines; add pixbuf error types * gdk-pixbuf-io.h: Add save function to GdkPixbufModule 2000-10-05 Havoc Pennington <hp@redhat.com> * demos/testpixbuf-save.c: add pixbuf save test * demos/Makefile.am: add testpixbuf-save.c
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index 91b45b04a..a515ea55b 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -361,3 +361,14 @@ gdk_pixbuf_init (void)
gdk_pixbuf_preinit (NULL, NULL);
gdk_pixbuf_postinit (NULL, NULL);
}
+
+/* Error quark */
+GQuark
+gdk_pixbuf_error_quark (void)
+{
+ static GQuark q = 0;
+ if (q == 0)
+ q = g_quark_from_static_string ("gdk-pixbuf-error-quark");
+
+ return q;
+}