1 Description: Add support for MATE desktop
2 This patch checks for an environment variable set by MATE desktop, in order to
3 make Qt4 applications natively use the GTK+ style when run on this desktop
4 Author: Raphaƫl Halimi <raphael.halimi@gmail.com>
6 Last-Update: 2016-05-29
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 src/gui/kernel/qapplication_x11.cpp | 6 ++++++
11 1 file changed, 6 insertions(+)
13 --- a/src/gui/kernel/qapplication_x11.cpp
14 +++ b/src/gui/kernel/qapplication_x11.cpp
15 @@ -2361,6 +2361,12 @@ void qt_init(QApplicationPrivate *priv,
19 + // Check the equivalent environment variable set by MATE
20 + if (!qgetenv("MATE_DESKTOP_SESSION_ID").isEmpty()) {
21 + X11->desktopEnvironment = DE_GNOME;
25 rc = XGetWindowProperty(X11->display, QX11Info::appRootWindow(), ATOM(_DT_SAVE_MODE),
26 0, 2, False, XA_STRING, &type, &format, &length,