]> Pileus Git - ~andy/gtk/blobdiff - gdk/linux-fb/gdkcolor-fb.c
Take thickness into account in the size allocation of the child widgets in
[~andy/gtk] / gdk / linux-fb / gdkcolor-fb.c
index 0435bbe48f52a9141dffbecd72cf8b2e7335b8f1..c2bbb10b2ad7af43748ebc48bd8db2fa317fe62d 100644 (file)
@@ -24,6 +24,7 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
+#include <config.h>
 #include <time.h>
 #include <sys/ioctl.h>
 #include <string.h>
@@ -52,6 +53,7 @@ gdk_colormap_finalize (GObject *object)
   
   g_free (private->info);
   g_free (colormap->colors);
+  g_free (private);
 
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
@@ -752,7 +754,7 @@ gdk_colors_alloc (GdkColormap       *colormap,
   private = GDK_COLORMAP_PRIVATE_DATA (colormap);
   
   if (nplanes > 0)
-    return 0;
+    return FALSE;
 
   found = 0;
   for (i = 1; i < colormap->size; i++)