Revert "gdk: enable rgba visuals by default"

This reverts commit a2ccb6601e.

This turns out to break GtkStatusIcon, and invalidates
the documentation of gdk_screen_get_system_visual().
This commit is contained in:
Matthias Clasen
2014-02-04 11:39:48 -05:00
parent a91a793468
commit 15060a8f24
2 changed files with 0 additions and 17 deletions

View File

@@ -478,15 +478,6 @@ nevertheless.
</para>
</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>

View File

@@ -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)
{