summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qgtk2painter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qgtk2painter.cpp')
-rw-r--r--src/widgets/styles/qgtk2painter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/styles/qgtk2painter.cpp b/src/widgets/styles/qgtk2painter.cpp
index 489d456617..ea8afbc93c 100644
--- a/src/widgets/styles/qgtk2painter.cpp
+++ b/src/widgets/styles/qgtk2painter.cpp
@@ -93,6 +93,7 @@ namespace QGtk2PainterPrivate {
static void initGtk()
{
+#ifndef QT_NO_LIBRARY
static bool initialized = false;
if (!initialized) {
// enforce the "0" suffix, so we'll open libgtk-x11-2.0.so.0
@@ -123,6 +124,7 @@ static void initGtk()
initialized = true;
}
+#endif // !QT_NO_LIBRARY
}
// To recover alpha we apply the gtk painting function two times to