summaryrefslogtreecommitdiff
path: root/gtk/gtkdrawingarea.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-10-06 16:02:39 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commit662001b60adc6171ff8351e2146c6fa1ba383f75 (patch)
tree8065a6ea7fbc29e5e4202c16eadb74feeea58d46 /gtk/gtkdrawingarea.c
parent380494c1d7a154e19af362756b1aaef490c60aaa (diff)
downloadgtk+-662001b60adc6171ff8351e2146c6fa1ba383f75.tar.gz
API: Remove ability to set visuals on windows
And with it, gtk_widget_get_visual() and gtk_widget_set_visual() are gone. We now always use the RGBA visual (if available) and otherwise fall back to the system visual.
Diffstat (limited to 'gtk/gtkdrawingarea.c')
-rw-r--r--gtk/gtkdrawingarea.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c
index 261bf34479..16f8f3befd 100644
--- a/gtk/gtkdrawingarea.c
+++ b/gtk/gtkdrawingarea.c
@@ -208,10 +208,9 @@ gtk_drawing_area_realize (GtkWidget *widget)
attributes.width = allocation.width;
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_OUTPUT;
- attributes.visual = gtk_widget_get_visual (widget);
attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK;
- attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
+ attributes_mask = GDK_WA_X | GDK_WA_Y;
window = gdk_window_new (gtk_widget_get_parent_window (widget),
&attributes, attributes_mask);