]> Pileus Git - ~andy/gtk/blobdiff - gdk-pixbuf/gdk-pixbuf-data.c
fix Control-E so it doesn't move to a new line each time you press it
[~andy/gtk] / gdk-pixbuf / gdk-pixbuf-data.c
index f03d869bace36abbea39c0b33b1dec40d91674e9..15f5aa8b82e3ad0da61e928bddf89d3b83d1ac8c 100644 (file)
@@ -5,16 +5,16 @@
  * Author: Federico Mena-Quintero <federico@gimp.org>
  *
  * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
  * version 2 of the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Library General Public License for more details.
+ * Lesser General Public License for more details.
  *
- * You should have received a copy of the GNU Library General Public
+ * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
@@ -23,6 +23,9 @@
 #include <config.h>
 #include "gdk-pixbuf.h"
 #include "gdk-pixbuf-private.h"
+#include "gdk-pixbuf-i18n.h"
+#include <stdlib.h>
+#include <string.h>
 
 \f
 
@@ -60,7 +63,7 @@ gdk_pixbuf_new_from_data (const guchar *data, GdkColorspace colorspace, gboolean
        g_return_val_if_fail (width > 0, NULL);
        g_return_val_if_fail (height > 0, NULL);
 
-       pixbuf = GDK_PIXBUF (g_type_create_instance (GDK_TYPE_PIXBUF));
+       pixbuf = g_object_new (GDK_TYPE_PIXBUF, NULL);
         
        pixbuf->colorspace = colorspace;
        pixbuf->n_channels = has_alpha ? 4 : 3;