Saturday, September 26, 2009

OpenOffice 3, KDE and GTK themes

For a while, OpenOffice integrated quite nicely with KDE.  Something happened recently that's causing missing captions in dialogues, PDF export failures and save-filename extensions to go missing in OO 3.1 (not sure about 3.0), details of which are here.  Pretty annoying for what is probably the most popular open-source office suite.  The Gentoo developers solved these issues by masking the "kde" flag.  I'm not sure what all the effects of that flag are, but visual integration with the desktop is the most salient: OO looks either very ugly (Raleigh theme) or screwed without that integration.  (The OO toolbars are essentially blank when using the default KDE theme.) The solution: x11-themes/gtk-engines-*, as mentioned in the official Gentoo KDE Guide.
The disappointing thing here is that the "GTK Styles and Fonts" settings item does not appear by default in the Appearance panel of KDE-4's System Settings.  It only appears after you install certain packages such as gtk-engines-qt, but not gtk-engines-qtcurve.  So if you go looking in System Settings first, you won't find anything that suggests that a solution even exists, and you may have themes installed that you can't select.  I think it makes more sense if the GTK settings item was enabled by the installation of gtk+.
The GTK settings item is installed by gtk-engines-qt as /usr/share/kde4/services/kcmgtk4.desktop, so the most straightforward solution would be to switch installation of that file to gtk+(+kde).  (By which I mean, when the kde USE flag is enabled.)  A crude stopgap measure could be to make all GTK themes depend on gtk-engines-qt if USE="kde", but that sounds messy and like it would just create more problems.  Something should change, though, because the way it currently works doesn't make sense.

No comments:

Post a Comment