gdkwindow-x11: always set _GTK_THEME_VARIANT property

Set _GTK_THEME_VARIANT to empty string when default theme variant
is used. This will allow to understand whether _GTK_THEME_VARIANT
is not supported or default variant is requested.

https://bugzilla.gnome.org/show_bug.cgi?id=761476
This commit is contained in:
Alberts Muktupāvels 2016-02-04 11:52:07 +02:00
parent 7ac337a9af
commit 8eb2619888

View File

@ -3728,7 +3728,8 @@ void
gdk_x11_window_set_theme_variant (GdkWindow *window, gdk_x11_window_set_theme_variant (GdkWindow *window,
char *variant) char *variant)
{ {
gdk_x11_window_set_utf8_property (window, "_GTK_THEME_VARIANT", variant); gdk_x11_window_set_utf8_property (window, "_GTK_THEME_VARIANT",
variant ? variant : "");
} }
#define GDK_SELECTION_MAX_SIZE(display) \ #define GDK_SELECTION_MAX_SIZE(display) \