From 662001b60adc6171ff8351e2146c6fa1ba383f75 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 6 Oct 2016 16:02:39 +0200 Subject: 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. --- gdk/gdkwindow.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gdk/gdkwindow.h') 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; -- cgit v1.2.1