[gdk-pixbuf] Make some string data const



commit f9c233bdbc04abb41921bf11171c79556b8f139b
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 18 22:55:15 2013 -0500

    Make some string data const
    
    https://bugzilla.gnome.org/show_bug.cgi?id=144042

 gdk-pixbuf/io-ani.c       |   12 ++++++------
 gdk-pixbuf/io-bmp.c       |   12 ++++++------
 gdk-pixbuf/io-gdip-bmp.c  |   12 ++++++------
 gdk-pixbuf/io-gdip-emf.c  |   12 ++++++------
 gdk-pixbuf/io-gdip-gif.c  |   12 ++++++------
 gdk-pixbuf/io-gdip-ico.c  |   12 ++++++------
 gdk-pixbuf/io-gdip-jpeg.c |   12 ++++++------
 gdk-pixbuf/io-gdip-png.c  |   12 ++++++------
 gdk-pixbuf/io-gdip-tiff.c |   12 ++++++------
 gdk-pixbuf/io-gdip-wmf.c  |   12 ++++++------
 gdk-pixbuf/io-gif.c       |   12 ++++++------
 gdk-pixbuf/io-icns.c      |   12 ++++++------
 gdk-pixbuf/io-ico.c       |   12 ++++++------
 gdk-pixbuf/io-jasper.c    |   12 ++++++------
 gdk-pixbuf/io-jpeg.c      |   12 ++++++------
 gdk-pixbuf/io-pcx.c       |   12 ++++++------
 gdk-pixbuf/io-pixdata.c   |   12 ++++++------
 gdk-pixbuf/io-png.c       |   12 ++++++------
 gdk-pixbuf/io-pnm.c       |   12 ++++++------
 gdk-pixbuf/io-qtif.c      |   12 ++++++------
 gdk-pixbuf/io-ras.c       |   12 ++++++------
 gdk-pixbuf/io-tga.c       |   12 ++++++------
 gdk-pixbuf/io-tiff.c      |   12 ++++++------
 gdk-pixbuf/io-wbmp.c      |   12 ++++++------
 gdk-pixbuf/io-xbm.c       |   12 ++++++------
 gdk-pixbuf/io-xpm.c       |   12 ++++++------
 26 files changed, 156 insertions(+), 156 deletions(-)
---
diff --git a/gdk-pixbuf/io-ani.c b/gdk-pixbuf/io-ani.c
index a5eeccd..72f2d0e 100644
--- a/gdk-pixbuf/io-ani.c
+++ b/gdk-pixbuf/io-ani.c
@@ -653,24 +653,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "RIFF    ACON", "    xxxx    ", 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar * mime_types[] = {
                "application/x-navi-animation",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar * extensions[] = {
                "ani",
                NULL
        };
        
        info->name = "ani";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The ANI image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c
index 26ffb62..4b5c5a3 100644
--- a/gdk-pixbuf/io-bmp.c
+++ b/gdk-pixbuf/io-bmp.c
@@ -1402,26 +1402,26 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "BM", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar * mime_types[] = {
                "image/bmp",
                "image/x-bmp",
                "image/x-MS-bmp",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar * extensions[] = {
                "bmp",
                NULL
        };
 
        info->name = "bmp";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The BMP image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-bmp.c b/gdk-pixbuf/io-gdip-bmp.c
index 40f6a5f..f6433bd 100644
--- a/gdk-pixbuf/io-gdip-bmp.c
+++ b/gdk-pixbuf/io-gdip-bmp.c
@@ -60,28 +60,28 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "BM", NULL, 100 }, /* BMP */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/bmp",
     "image/x-bmp",
     "image/x-MS-bmp",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "bmp",
     NULL
   };
 
   info->name        = "bmp";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The BMP image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-emf.c b/gdk-pixbuf/io-gdip-emf.c
index 07ee0b0..71965fc 100644
--- a/gdk-pixbuf/io-gdip-emf.c
+++ b/gdk-pixbuf/io-gdip-emf.c
@@ -36,12 +36,12 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "\x01\x00\x00\x00", NULL, 100 }, /* EMF */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "application/emf",
     "application/x-emf",
     "image/x-emf",
@@ -49,16 +49,16 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "emf",
     NULL
   };
 
   info->name        = "emf";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The EMF image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-gif.c b/gdk-pixbuf/io-gdip-gif.c
index f991a9d..7c8813d 100644
--- a/gdk-pixbuf/io-gdip-gif.c
+++ b/gdk-pixbuf/io-gdip-gif.c
@@ -60,26 +60,26 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "GIF8", NULL, 100 }, /* GIF */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/gif",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "gif",
     NULL
   };
 
   info->name        = "gif";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The GIF image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-ico.c b/gdk-pixbuf/io-gdip-ico.c
index 8538b58..7246f3c 100644
--- a/gdk-pixbuf/io-gdip-ico.c
+++ b/gdk-pixbuf/io-gdip-ico.c
@@ -36,29 +36,29 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "  \x1   ", "zz znz", 100 }, /* ICO */
     { "  \x2   ", "zz znz", 100 }, /* ICO */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/x-icon",
     "image/x-ico",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "ico",
     "cur",
     NULL
   };
 
   info->name        = "ico";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The ICO image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-jpeg.c b/gdk-pixbuf/io-gdip-jpeg.c
index 8bd3058..95699ef 100644
--- a/gdk-pixbuf/io-gdip-jpeg.c
+++ b/gdk-pixbuf/io-gdip-jpeg.c
@@ -114,17 +114,17 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "\xff\xd8", NULL, 100 }, /* JPEG */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/jpeg",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "jpeg",
     "jpe",
     "jpg",
@@ -132,10 +132,10 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
   };
 
   info->name        = "jpeg";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The JPEG image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-png.c b/gdk-pixbuf/io-gdip-png.c
index 8b094bf..3c99857 100644
--- a/gdk-pixbuf/io-gdip-png.c
+++ b/gdk-pixbuf/io-gdip-png.c
@@ -113,26 +113,26 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "\x89PNG\r\n\x1a\x0a", NULL, 100 }, /* PNG */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/png",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "png",
     NULL
   };
 
   info->name        = "png";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The PNG image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-tiff.c b/gdk-pixbuf/io-gdip-tiff.c
index 7e0a189..1e322df 100644
--- a/gdk-pixbuf/io-gdip-tiff.c
+++ b/gdk-pixbuf/io-gdip-tiff.c
@@ -60,28 +60,28 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "MM \x2a", "  z ", 100 }, /* TIFF */
     { "II\x2a ", "   z", 100 }, /* TIFF */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/tiff",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "tiff",
     "tif",
     NULL
   };
 
   info->name        = "tiff";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = "The TIFF image format";
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gdip-wmf.c b/gdk-pixbuf/io-gdip-wmf.c
index 3c89d4a..8a1978d 100644
--- a/gdk-pixbuf/io-gdip-wmf.c
+++ b/gdk-pixbuf/io-gdip-wmf.c
@@ -36,28 +36,28 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     { "\xd7\xcd\xc6\x9a", NULL, 100 }, /* WMF */
     { "\x01\x00\x09\x00", NULL, 100 }, /* WMF */
     { NULL, NULL, 0 }
   };
 
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/x-wmf",
     NULL
   };
 
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "wmf",
     "apm",
     NULL
   };
 
   info->name        = "wmf";
-  info->signature   = signature;
+  info->signature   = (GdkPixbufModulePattern *) signature;
   info->description = _("The WMF image format");
-  info->mime_types  = mime_types;
-  info->extensions  = extensions;
+  info->mime_types  = (gchar **) mime_types;
+  info->extensions  = (gchar **) extensions;
   info->flags       = GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license     = "LGPL";
 }
diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c
index a943f4e..011a6ca 100644
--- a/gdk-pixbuf/io-gif.c
+++ b/gdk-pixbuf/io-gif.c
@@ -1702,24 +1702,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-        static GdkPixbufModulePattern signature[] = {
+        static const GdkPixbufModulePattern signature[] = {
                 { "GIF8", NULL, 100 },
                 { NULL, NULL, 0 }
         };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/gif",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "gif",
                NULL
        };
 
        info->name = "gif";
-        info->signature = signature;
+        info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The GIF image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-icns.c b/gdk-pixbuf/io-icns.c
index 00cdc50..2913e19 100644
--- a/gdk-pixbuf/io-icns.c
+++ b/gdk-pixbuf/io-icns.c
@@ -379,24 +379,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule * module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
 {
-  static GdkPixbufModulePattern signature[] = {
+  static const GdkPixbufModulePattern signature[] = {
     {"icns", NULL, 100},       /* file begins with 'icns' */
     {NULL, NULL, 0}
   };
-  static gchar *mime_types[] = {
+  static const gchar *mime_types[] = {
     "image/x-icns",
     NULL
   };
-  static gchar *extensions[] = {
+  static const gchar *extensions[] = {
     "icns",
     NULL
   };
 
   info->name = "icns";
-  info->signature = signature;
+  info->signature = (GdkPixbufModulePattern *) signature;
   info->description = N_("The ICNS image format");
-  info->mime_types = mime_types;
-  info->extensions = extensions;
+  info->mime_types = (gchar **) mime_types;
+  info->extensions = (gchar **) extensions;
   info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
   info->license = "GPL";
   info->disabled = FALSE;
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index b73211c..408f430 100644
--- a/gdk-pixbuf/io-ico.c
+++ b/gdk-pixbuf/io-ico.c
@@ -1249,28 +1249,28 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "  \x1   ", "zz znz", 100 }, 
                { "  \x2   ", "zz znz", 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-icon",
                "image/x-ico",
                "image/x-win-bitmap",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "ico",
                "cur",
                NULL
        };
 
        info->name = "ico";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The ICO image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-jasper.c b/gdk-pixbuf/io-jasper.c
index 72046c6..5eeac01 100644
--- a/gdk-pixbuf/io-jasper.c
+++ b/gdk-pixbuf/io-jasper.c
@@ -280,18 +280,18 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule * module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "    jP", "!!!!  ", 100 },            /* file begins with 'jP' at offset 4 */
                { "\xff\x4f\xff\x51\x00", NULL, 100 },  /* file starts with FF 4F FF 51 00 */
                { NULL, NULL, 0 }
        };
-       static gchar *mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/jp2",
                "image/jpeg2000",
                "image/jpx",
                NULL
        };
-       static gchar *extensions[] = {
+       static const gchar *extensions[] = {
                "jp2",
                "jpc",
                "jpx",
@@ -301,10 +301,10 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
        };
 
        info->name = "jpeg2000";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The JPEG 2000 image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
        info->disabled = FALSE;
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 4a90d87..a4a1554 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -1460,15 +1460,15 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "\xff\xd8", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/jpeg",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "jpeg",
                "jpe",
                "jpg",
@@ -1476,10 +1476,10 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
        };
 
        info->name = "jpeg";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The JPEG image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-pcx.c b/gdk-pixbuf/io-pcx.c
index b658f58..86419ae 100644
--- a/gdk-pixbuf/io-pcx.c
+++ b/gdk-pixbuf/io-pcx.c
@@ -733,7 +733,7 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "\x0a \x01", NULL, 100 },
                { "\x0a\x02\x01", NULL, 100 },
                { "\x0a\x03\x01", NULL, 100 },
@@ -741,20 +741,20 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
                { "\x0a\x05\x01", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar *mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-pcx",
                NULL,
        };
-       static gchar *extensions[] = {
+       static const gchar *extensions[] = {
                "pcx",
                NULL,
        };
 
        info->name = "pcx";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The PCX image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-pixdata.c b/gdk-pixbuf/io-pixdata.c
index 08ae20b..f550091 100644
--- a/gdk-pixbuf/io-pixdata.c
+++ b/gdk-pixbuf/io-pixdata.c
@@ -168,24 +168,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule * module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "GdkP", NULL, 100 },          /* file begins with 'GdkP' at offset 0 */
                { NULL, NULL, 0 }
        };
-       static gchar *mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-gdkpixdata",
                NULL
        };
-       static gchar *extensions[] = {
+       static const gchar *extensions[] = {
                "gdkp",
                NULL
        };
 
        info->name = "GdkPixdata";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The GdkPixdata format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
        info->disabled = FALSE;
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c
index c8c5597..454e92b 100644
--- a/gdk-pixbuf/io-png.c
+++ b/gdk-pixbuf/io-png.c
@@ -1101,24 +1101,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-        static GdkPixbufModulePattern signature[] = {
+        static const GdkPixbufModulePattern signature[] = {
                 { "\x89PNG\r\n\x1a\x0a", NULL, 100 },
                 { NULL, NULL, 0 }
         };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/png",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "png",
                NULL
        };
 
        info->name = "png";
-        info->signature = signature;
+        info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The PNG image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c
index b15aa91..21a0073 100644
--- a/gdk-pixbuf/io-pnm.c
+++ b/gdk-pixbuf/io-pnm.c
@@ -1050,7 +1050,7 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "P1", NULL, 100 },
                { "P2", NULL, 100 },
                { "P3", NULL, 100 },
@@ -1059,14 +1059,14 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
                { "P6", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-portable-anymap",
                "image/x-portable-bitmap",
                "image/x-portable-graymap",
                "image/x-portable-pixmap",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "pnm",
                "pbm",
                "pgm",
@@ -1075,10 +1075,10 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
        };
 
        info->name = "pnm";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The PNM/PBM/PGM/PPM image format family");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-qtif.c b/gdk-pixbuf/io-qtif.c
index ee4ffd0..e0ebe63 100644
--- a/gdk-pixbuf/io-qtif.c
+++ b/gdk-pixbuf/io-qtif.c
@@ -597,27 +597,27 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-    static GdkPixbufModulePattern signature[] = {
+    static const GdkPixbufModulePattern signature[] = {
         { "abcdidsc", "xxxx    ", 100 },
         { "abcdidat", "xxxx    ", 100 },
         { NULL, NULL, 0 }
     };
-    static gchar * mime_types[] = {
+    static const gchar *mime_types[] = {
         "image/x-quicktime",
         "image/qtif",
         NULL
     };
-    static gchar * extensions[] = {
+    static const gchar *extensions[] = {
         "qtif",
         "qif",
         NULL
     };
 
     info->name = "qtif";
-    info->signature = signature;
+    info->signature = (GdkPixbufModulePattern *) signature;
     info->description = N_("The QTIF image format");
-    info->mime_types = mime_types;
-    info->extensions = extensions;
+    info->mime_types = (gchar **) mime_types;
+    info->extensions = (gchar **) extensions;
     info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
     info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-ras.c b/gdk-pixbuf/io-ras.c
index ee79f1a..38593b3 100644
--- a/gdk-pixbuf/io-ras.c
+++ b/gdk-pixbuf/io-ras.c
@@ -525,25 +525,25 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "\x59\xa6\x6a\x95", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-cmu-raster",
                "image/x-sun-raster",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "ras",
                NULL
        };
 
        info->name = "ras";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The Sun raster image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-tga.c b/gdk-pixbuf/io-tga.c
index 5ef14fa..e6e9ce1 100644
--- a/gdk-pixbuf/io-tga.c
+++ b/gdk-pixbuf/io-tga.c
@@ -983,7 +983,7 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { " \x1\x1", "x  ", 100 },
                { " \x1\x9", "x  ", 100 },
                { "  \x2", "xz ",  99 }, /* only 99 since .CUR also matches this */
@@ -992,21 +992,21 @@ MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
                { "  \xb", "xz ", 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-tga",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "tga",
                "targa",
                NULL
        };
 
        info->name = "tga";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The Targa image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c
index daf096a..2f4e7e8 100644
--- a/gdk-pixbuf/io-tiff.c
+++ b/gdk-pixbuf/io-tiff.c
@@ -767,27 +767,27 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-        static GdkPixbufModulePattern signature[] = {
+        static const GdkPixbufModulePattern signature[] = {
                 { "MM \x2a", "  z ", 100 },
                 { "II\x2a ", "   z", 100 },
                 { "II* \020   CR\002 ", "   z zzz   z", 0 },
                 { NULL, NULL, 0 }
         };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/tiff",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "tiff",
                "tif",
                NULL
        };
 
        info->name = "tiff";
-        info->signature = signature;
+        info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The TIFF image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
         /* not threadsafe, due to the error handler handling */
        info->flags = GDK_PIXBUF_FORMAT_WRITABLE | GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
diff --git a/gdk-pixbuf/io-wbmp.c b/gdk-pixbuf/io-wbmp.c
index e961322..e86fab2 100644
--- a/gdk-pixbuf/io-wbmp.c
+++ b/gdk-pixbuf/io-wbmp.c
@@ -353,27 +353,27 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "  ",    "zz", 1 }, 
                { " \140", "z ", 1 },
                { " \100", "z ", 1 },
                { " \040", "z ", 1 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/vnd.wap.wbmp",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "wbmp",
                NULL
        };
 
        info->name = "wbmp";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The WBMP image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index 4f3e1e8..5b0e5df 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -482,25 +482,25 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "#define ", NULL, 100 },
                { "/*", NULL, 50 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-xbitmap",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "xbm",
                NULL
        };
 
        info->name = "xbm";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The XBM image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index 7b372af..02c55cc 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -799,24 +799,24 @@ MODULE_ENTRY (fill_vtable) (GdkPixbufModule *module)
 
 MODULE_ENTRY (fill_info) (GdkPixbufFormat *info)
 {
-       static GdkPixbufModulePattern signature[] = {
+       static const GdkPixbufModulePattern signature[] = {
                { "/* XPM */", NULL, 100 },
                { NULL, NULL, 0 }
        };
-       static gchar * mime_types[] = {
+       static const gchar *mime_types[] = {
                "image/x-xpixmap",
                NULL
        };
-       static gchar * extensions[] = {
+       static const gchar *extensions[] = {
                "xpm",
                NULL
        };
 
        info->name = "xpm";
-       info->signature = signature;
+       info->signature = (GdkPixbufModulePattern *) signature;
        info->description = N_("The XPM image format");
-       info->mime_types = mime_types;
-       info->extensions = extensions;
+       info->mime_types = (gchar **) mime_types;
+       info->extensions = (gchar **) extensions;
        info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
        info->license = "LGPL";
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]