summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-08-11 07:28:27 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-08-11 07:28:27 (GMT)
commit20050c010038ab10c29b68833b2054b87dd59a33 (patch)
treee2b4446b0d2d2822b1bd9db387c1726824294a4e /src/gui/image
parentf5795d4e84b132f5c8640c73265763ecfda566d3 (diff)
downloadQt-20050c010038ab10c29b68833b2054b87dd59a33.zip
Qt-20050c010038ab10c29b68833b2054b87dd59a33.tar.gz
Qt-20050c010038ab10c29b68833b2054b87dd59a33.tar.bz2
Compile QtGui on Linux with no Gtk development package present.
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qiconloader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp
index e6e3074..2204ac9 100644
--- a/src/gui/image/qiconloader.cpp
+++ b/src/gui/image/qiconloader.cpp
@@ -73,8 +73,12 @@ static QString systemThemeName()
QString result;
#ifdef Q_WS_X11
if (X11->desktopEnvironment == DE_GNOME) {
+#if defined(QT_NO_STYLE_GTK)
+ result = QLatin1String("gnome");
+#else
result = QGtk::getGConfString(QLatin1String("/desktop/gnome/interface/icon_theme"),
QLatin1String("gnome"));
+#endif
} else if (X11->desktopEnvironment == DE_KDE) {
QString kdeDefault = X11->desktopVersion >= 4 ?
QString::fromLatin1("oxygen") :