File: pixbuf-init.c

package info (click to toggle)
gtk+2.0 2.24.32-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 128,080 kB
  • sloc: ansic: 574,621; makefile: 5,197; sh: 4,500; xml: 1,193; python: 1,119; perl: 749; awk: 72; cpp: 34
file content (18 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "config.h"
#include <glib.h>
#include <glib/gstdio.h>

static gboolean
file_exists (const char *filename)
{
  GStatBuf statbuf;

  return g_stat (filename, &statbuf) == 0;
}

void
pixbuf_init (void)
{
  if (file_exists ("../../gdk-pixbuf/libpixbufloader-pnm.la"))
    g_setenv ("GDK_PIXBUF_MODULE_FILE", "../../gdk-pixbuf/gdk-pixbuf.loaders", TRUE);
}