~ubuntu-branches/ubuntu/utopic/gdk-pixbuf/utopic

« back to all changes in this revision

Viewing changes to gdk-pixbuf/io-icns.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2014-01-15 10:41:02 UTC
  • mfrom: (1.5.8)
  • Revision ID: package-import@ubuntu.com-20140115104102-fzml65xmzuyjr2dj
Tags: 2.30.3-0ubuntu1
* New upstream release:
  - Expand the test suite
  - Enable coverage testing with --enable-coverage
  - Unify sniff buffer sizes across loaders: 4k everywhere
  - Port to GTask
  - xpm: Fix scaling
  - xpm: Update colors from pango
  - qtif: fix fread() error check
* debian/control:
  - Bump build-depends on libglib2.0-dev
  - Add build-depends on gawk
* debian/patches/fix-xpm-scaling.patch:
  - Applied upstream
* debian/patches/0001-Fix-test-failure-if-PNG_iTXt_SUPPORTED-not-defined.patch:
  - Fix test failing due to how our libpng is compiled

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef _WIN32
23
23
#define _GNU_SOURCE
24
24
#endif
 
25
#include "config.h"
 
26
 
25
27
#include <stdlib.h>
26
28
#include <string.h>
27
29
#include <errno.h>
379
381
 
380
382
MODULE_ENTRY (fill_info) (GdkPixbufFormat * info)
381
383
{
382
 
  static GdkPixbufModulePattern signature[] = {
 
384
  static const GdkPixbufModulePattern signature[] = {
383
385
    {"icns", NULL, 100},        /* file begins with 'icns' */
384
386
    {NULL, NULL, 0}
385
387
  };
386
 
  static gchar *mime_types[] = {
 
388
  static const gchar *mime_types[] = {
387
389
    "image/x-icns",
388
390
    NULL
389
391
  };
390
 
  static gchar *extensions[] = {
 
392
  static const gchar *extensions[] = {
391
393
    "icns",
392
394
    NULL
393
395
  };
394
396
 
395
397
  info->name = "icns";
396
 
  info->signature = signature;
 
398
  info->signature = (GdkPixbufModulePattern *) signature;
397
399
  info->description = N_("The ICNS image format");
398
 
  info->mime_types = mime_types;
399
 
  info->extensions = extensions;
 
400
  info->mime_types = (gchar **) mime_types;
 
401
  info->extensions = (gchar **) extensions;
400
402
  info->flags = GDK_PIXBUF_FORMAT_THREADSAFE;
401
403
  info->license = "GPL";
402
404
  info->disabled = FALSE;