]> Pileus Git - ~andy/gtk/commitdiff
Added some first steps for file saving. Big thing is that a
authorMark Crichton <crichton@src.gnome.org>
Thu, 29 Jul 1999 21:17:40 +0000 (21:17 +0000)
committerMark Crichton <crichton@src.gnome.org>
Thu, 29 Jul 1999 21:17:40 +0000 (21:17 +0000)
Added some first steps for file saving.  Big thing is that a gdk_pixbuf_save
function needs to be setup.

Mark

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/io-png.c

index 8bc05a80858b145e37c2b5e0c26d9db0c49907f3..be55f15a7475fe9248f048c93af46046a3843e33 100644 (file)
@@ -1,3 +1,11 @@
+1999-07-29  Mark Crichton  <crichton@gimp.org>
+
+       * src/io-png.c (image_save): Added PNG saving function
+
+       * src/gdk-pixbuf-io.c: Changed image_save function format.  Now it's
+       image_save(GdkPixBuf *p, FILE *f, ...)
+       
+
 1999-07-26  Michael Zucchi  <mzucchi@denr.sa.gov.au>
 
        * src/Makefile.am (*_LIB): Only build the relevant loaders which
index cdb0007fbbdc36f852e2e2cf7853578c0f74f544..94e6e6b6a6d2c9599f2a9a93665f92b394c1c846 100644 (file)
@@ -121,7 +121,7 @@ static struct {
        gboolean   (*format_check)(unsigned char *buffer, int size);
        GModule   *module;
        GdkPixBuf *(*load)(FILE *f);
-       int        (*save)(char *filename, ...);
+       int        (*save)(GdkPixBuf, *p, FILE *f, ...);
 } file_formats [] = {
        { "png",  pixbuf_check_png,  NULL, NULL, NULL },
        { "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL },
@@ -209,9 +209,3 @@ gdk_pixbuf_load_image (const char *file)
        g_warning ("Unable to find handler for file: %s", file);
        return NULL;
 }
-
-/*
- * Local variables:
- * c-basic-offset: 8
- * End:
- */
index 71cce17c665c1dc4efcb635329ee7fec7173b786..ec14380951ac701d97a1dc234b7e67c969e7925d 100644 (file)
@@ -163,3 +163,7 @@ GdkPixBuf *image_load(FILE * f)
 
     return pixbuf;
 }
+
+int image_save(GdkPixBuf *pixbuf, FILE *file)
+{
+     png_structp,