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 /gdk/gdkwindow.h | |
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 'gdk/gdkwindow.h')
-rw-r--r-- | gdk/gdkwindow.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h index 319d8367c2..d3b3240dff 100644 --- a/gdk/gdkwindow.h +++ b/gdk/gdkwindow.h @@ -91,7 +91,6 @@ typedef enum * @GDK_WA_TITLE: Honor the title field * @GDK_WA_X: Honor the X coordinate field * @GDK_WA_Y: Honor the Y coordinate field - * @GDK_WA_VISUAL: Honor the visual field * @GDK_WA_NOREDIR: Honor the override_redirect field * @GDK_WA_TYPE_HINT: Honor the type_hint field * @@ -107,9 +106,8 @@ typedef enum GDK_WA_TITLE = 1 << 1, GDK_WA_X = 1 << 2, GDK_WA_Y = 1 << 3, - GDK_WA_VISUAL = 1 << 4, - GDK_WA_NOREDIR = 1 << 5, - GDK_WA_TYPE_HINT = 1 << 6 + GDK_WA_NOREDIR = 1 << 4, + GDK_WA_TYPE_HINT = 1 << 5 } GdkWindowAttributesType; /* Size restriction enumeration. @@ -352,7 +350,6 @@ struct _GdkWindowAttr gint width; gint height; GdkWindowWindowClass wclass; - GdkVisual *visual; GdkWindowType window_type; gboolean override_redirect; GdkWindowTypeHint type_hint; |