]> Pileus Git - ~andy/gtk/blobdiff - demos/testpixbuf-color.c
gtk-demo: Use draw signal in toolpalette demo
[~andy/gtk] / demos / testpixbuf-color.c
index 78fa93928972b88f2cdd0845a362a839961b4f51..5ce086cf9092421cbeb6fcba7e40469dba9f90bf 100644 (file)
@@ -111,11 +111,9 @@ main (int argc, char **argv)
 
        gtk_init (&argc, &argv);
 
-       gtk_widget_set_default_colormap (gdk_rgb_get_colormap ());
-
        root = gdk_get_default_root_window ();
-       pixbuf = gdk_pixbuf_get_from_drawable (NULL, root, NULL,
-                                              0, 0, 0, 0, 150, 160);
+       pixbuf = gdk_pixbuf_get_from_window (NULL, root,
+                                            0, 0, 0, 0, 150, 160);
 
        /* PASS */
        g_debug ("try to save PNG with a profile");