diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-06-04 13:58:25 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-06-04 13:58:25 +0000 |
commit | 7ee5231af25fe967e77d68c6b9ee112555242c7c (patch) | |
tree | f800743ffb53a7c9b48a422ae996838e879f5151 /vcl/unx | |
parent | f2c5506c22316d094cccacb8ddf1cfeb78600b2d (diff) |
INTEGRATION: CWS enabletango (1.37.34); FILE MERGED
2007/05/29 13:44:56 pmladek 1.37.34.1: #i75661#
read the default icon theme from the system in GNOME and KDE
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index a64c21a6acd2..60278381bce4 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -4,9 +4,9 @@ * * $RCSfile: salnativewidgets-gtk.cxx,v $ * - * $Revision: 1.37 $ + * $Revision: 1.38 $ * - * last change: $Author: rt $ $Date: 2007-04-26 10:39:32 $ + * last change: $Author: ihi $ $Date: 2007-06-04 14:58:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -3180,6 +3180,12 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) aStyleSet.SetScrollBarSize( slider_width + 2*trough_border ); aStyleSet.SetMinThumbSize( min_slider_length - magic ); + // preferred icon style + gchar* pIconThemeName = NULL; + g_object_get( gtk_settings_get_default(), "gtk-icon-theme-name", &pIconThemeName, (char *)NULL ); + aStyleSet.SetPreferredSymbolsStyleName( OUString::createFromAscii(pIconThemeName) ); + g_free (pIconThemeName); + // FIXME: need some way of fetching toolbar icon size. // aStyleSet.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_SMALL ); |