diff options
author | Benjamin Otte <otte@redhat.com> | 2016-10-06 16:02:39 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-16 18:17:21 +0200 |
commit | 662001b60adc6171ff8351e2146c6fa1ba383f75 (patch) | |
tree | 8065a6ea7fbc29e5e4202c16eadb74feeea58d46 /gtk/gtktextview.c | |
parent | 380494c1d7a154e19af362756b1aaef490c60aaa (diff) | |
download | gtk+-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/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 01b60e5245..f6be78bfe8 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4686,10 +4686,9 @@ gtk_text_view_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 = GDK_VISIBILITY_NOTIFY_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); @@ -9944,10 +9943,9 @@ text_window_realize (GtkTextWindow *win, attributes.width = win->allocation.width; attributes.height = win->allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; - attributes.visual = gtk_widget_get_visual (win->widget); attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK; - attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL; + attributes_mask = GDK_WA_X | GDK_WA_Y; window = gtk_widget_get_window (widget); |