summaryrefslogtreecommitdiffstats
path: root/src/plugins/styles/gtk2/qgtkstyle_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/styles/gtk2/qgtkstyle_p.cpp')
-rw-r--r--src/plugins/styles/gtk2/qgtkstyle_p.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/plugins/styles/gtk2/qgtkstyle_p.cpp b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
index 44a5878..e57b3d8 100644
--- a/src/plugins/styles/gtk2/qgtkstyle_p.cpp
+++ b/src/plugins/styles/gtk2/qgtkstyle_p.cpp
@@ -66,8 +66,6 @@
#include <QtWidgets/QToolBar>
#include <QtWidgets/QToolButton>
-#include <gconf/gconf-client.h>
-
// X11 Includes:
// the following is necessary to work around breakage in many versions
@@ -367,42 +365,6 @@ void QGtkStylePrivate::cleanupGtkWidgets()
free(const_cast<char *>(it.key().data()));
}
-QString QGtkStylePrivate::getGConfString(const QString &value, const QString &fallback)
-{
- QString retVal = fallback;
-#if !defined(GLIB_VERSION_2_36)
- g_type_init();
-#endif
- GConfClient* client = gconf_client_get_default();
- GError *err = 0;
- char *str = gconf_client_get_string(client, qPrintable(value), &err);
- if (!err) {
- retVal = QString::fromUtf8(str);
- g_free(str);
- }
- g_object_unref(client);
- if (err)
- g_error_free (err);
- return retVal;
-}
-
-bool QGtkStylePrivate::getGConfBool(const QString &key, bool fallback)
-{
- bool retVal = fallback;
-#if !defined(GLIB_VERSION_2_36)
- g_type_init();
-#endif
- GConfClient* client = gconf_client_get_default();
- GError *err = 0;
- bool result = gconf_client_get_bool(client, qPrintable(key), &err);
- g_object_unref(client);
- if (!err)
- retVal = result;
- else
- g_error_free (err);
- return retVal;
-}
-
QString QGtkStylePrivate::getThemeName()
{
QString themeName;