]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkpixmap.c
Add default handlers for all signals; for consistency and for the benefit
[~andy/gtk] / gtk / gtkpixmap.c
index e37ae0bad7137374fa8c7b030c16231be6306b50..62207b00dcfce329a58e78e508de44772b1e9ada 100644 (file)
@@ -27,6 +27,9 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
+#undef GDK_DISABLE_DEPRECATED
+#undef GTK_DISABLE_DEPRECATED
+
 #include <math.h>
 #include "gtkcontainer.h"
 #include "gtkpixmap.h"
@@ -287,14 +290,14 @@ build_insensitive_pixmap (GtkPixmap *gtkpixmap)
   
   insensitive = gdk_pixmap_new (GTK_WIDGET (gtkpixmap)->window, w, h, -1);
 
-  gdk_pixbuf_render_to_drawable (stated,
-                                 insensitive,
-                                 GTK_WIDGET (gtkpixmap)->style->white_gc,
-                                 0, 0,
-                                 0, 0,
-                                 w, h,
-                                 GDK_RGB_DITHER_NORMAL,
-                                 0, 0);
+  gdk_draw_pixbuf (insensitive,
+                  GTK_WIDGET (gtkpixmap)->style->white_gc,
+                  stated,
+                  0, 0,
+                  0, 0,
+                  w, h,
+                  GDK_RGB_DITHER_NORMAL,
+                  0, 0);
 
   gtkpixmap->pixmap_insensitive = insensitive;