]> git.pld-linux.org Git - packages/qt4.git/blob - add-mate-support.patch
icu rebuild
[packages/qt4.git] / add-mate-support.patch
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>
5 Origin: other
6 Last-Update: 2016-05-29
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 ---
10  src/gui/kernel/qapplication_x11.cpp |    6 ++++++
11  1 file changed, 6 insertions(+)
12
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,
16                  break;
17              }
18  
19 +            // Check the equivalent environment variable set by MATE
20 +            if (!qgetenv("MATE_DESKTOP_SESSION_ID").isEmpty()) {
21 +                X11->desktopEnvironment = DE_GNOME;
22 +                break;
23 +            }
24 +
25              rc = XGetWindowProperty(X11->display, QX11Info::appRootWindow(), ATOM(_DT_SAVE_MODE),
26                                      0, 2, False, XA_STRING, &type, &format, &length,
27                                      &after, &data);
This page took 0.23269 seconds and 3 git commands to generate.