]> Pileus Git - ~andy/gtk/blobdiff - tests/testwindows.c
tests: No need to allocate colors anymore
[~andy/gtk] / tests / testwindows.c
index 520e167e55b3cb89259cbb3a25b141fbae1d9eeb..2a4db4db6bbc3e11e45bf1c6b1591029dcc1ae3c 100644 (file)
@@ -51,8 +51,6 @@ create_window (GdkWindow *parent,
       bg->green = g_random_int_range (0, 0xffff);;
     }
   
-  if (!gdk_colormap_alloc_color (gtk_widget_get_colormap (darea), bg, FALSE, TRUE))
-    g_assert_not_reached ();
   gdk_window_set_background (window, bg);
   g_object_set_data_full (G_OBJECT (window), "color", bg, g_free);