diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-02 10:56:51 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-02 10:58:57 (GMT) |
commit | e008ce19585bf607ff652ab95391a890a9523076 (patch) | |
tree | dc7838c85d1ddf3126566b50a672ca16a4faedb2 /src/gui/styles/qgtkstyle.cpp | |
parent | 66fc43343b06575a97b84ad44d70fd3082a6140e (diff) | |
download | Qt-e008ce19585bf607ff652ab95391a890a9523076.zip Qt-e008ce19585bf607ff652ab95391a890a9523076.tar.gz Qt-e008ce19585bf607ff652ab95391a890a9523076.tar.bz2 |
Respect "menus_have_icons" property in GTK+
The default value is planned to be changed in the next minor update to
Gtk+ (2.28), hence we need to read this dynamically now. We also
added a helper-function to easily read a gconf bool.
Note, as a bonus feature I also added support for
"buttons_have_icons".
Task-number: 260684
Reviewed-by: joao
Diffstat (limited to 'src/gui/styles/qgtkstyle.cpp')
-rw-r--r-- | src/gui/styles/qgtkstyle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp index 87fa322..0ccf219 100644 --- a/src/gui/styles/qgtkstyle.cpp +++ b/src/gui/styles/qgtkstyle.cpp @@ -656,6 +656,11 @@ int QGtkStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidg return !scrollbars_within_bevel; } + case SH_DialogButtonBox_ButtonsHaveIcons: { + static bool buttonsHaveIcons = QGtk::getGConfBool(QLS("/desktop/gnome/interface/buttons_have_icons")); + return buttonsHaveIcons; + } + default: return QCleanlooksStyle::styleHint(hint, option, widget, returnData); } |