[gtk+] Revert "gdk: enable rgba visuals by default"
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Revert "gdk: enable rgba visuals by default"
- Date: Tue, 4 Feb 2014 18:18:56 +0000 (UTC)
commit 15060a8f24bdce8fe2dac911059ca996f60c3456
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 4 11:39:48 2014 -0500
Revert "gdk: enable rgba visuals by default"
This reverts commit a2ccb6601e0fb6dbe55517ad399728a00f6d7e40.
This turns out to break GtkStatusIcon, and invalidates
the documentation of gdk_screen_get_system_visual().
docs/reference/gtk/running.sgml | 9 ---------
gdk/x11/gdkvisual-x11.c | 8 --------
2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml
index c7d2d9b..8065e19 100644
--- a/docs/reference/gtk/running.sgml
+++ b/docs/reference/gtk/running.sgml
@@ -479,15 +479,6 @@ nevertheless.
</formalpara>
<formalpara>
- <title><envar>GDK_RGBA</envar></title>
-
- <para>
- Since 3.12, this environment variable can be used to prevent
- using RGBA visuals on the X11 backend by setting GDK_RGBA=0.
- </para>
-</formalpara>
-
-<formalpara>
<title><envar>XDG_DATA_HOME</envar>, <envar>XDG_DATA_DIRS</envar></title>
<para>
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index 0c401f2..0898a9f 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -285,14 +285,6 @@ _gdk_x11_screen_init_visuals (GdkScreen *screen)
}
}
- /* prefer the RGBA visual unless GDK_RGBA=0 */
- if (x11_screen->rgba_visual)
- {
- const gchar *csd_env = g_getenv ("GDK_RGBA");
- if (g_strcmp0 (csd_env, "0") != 0)
- x11_screen->system_visual = x11_screen->rgba_visual;
- }
-
#ifdef G_ENABLE_DEBUG
if (_gdk_debug_flags & GDK_DEBUG_MISC)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]