/* Copyright (c) 2009 Christian Dywan <christian@lanedo.com>
   This code is licensed under the terms of the expat license */

/* gcc -o a a.c $(pkg-config --cflags --libs gtk+-2.0) -Wall -O1 -g */

#include <string.h>
#include <gtk/gtk.h>

int
main (int    argc,
      gchar *argv[])
{
  GError *error;
  GdkPixbuf *pixbuf;

  gtk_init_check (&argc, &argv);

  error = NULL;
  pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 100, 100);
  gdk_pixbuf_save (pixbuf, "brackwasser", "bogus", &error, NULL);
  if (error)
    g_critical (error->message);
  g_object_unref (pixbuf);

  return 0;
}
