mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
tests: No need to allocate colors anymore
This commit is contained in:
parent
b479ff9cb5
commit
c340fb7efd
@ -51,8 +51,6 @@ create_window (GdkWindow *parent,
|
|||||||
bg->green = g_random_int_range (0, 0xffff);;
|
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);
|
gdk_window_set_background (window, bg);
|
||||||
g_object_set_data_full (G_OBJECT (window), "color", bg, g_free);
|
g_object_set_data_full (G_OBJECT (window), "color", bg, g_free);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user