summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-11-13 14:04:58 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-11-13 14:05:10 +0100
commita4053378b7a98d8a18415ba5acd8b69ba28793a2 (patch)
treee3dbffa87f785f2bc324776030e0b13251f1e813 /vcl/unx/gtk
parenta2020262db475dc5e4af0c2692946e878ea4842a (diff)
Solve scope issues with older gtk
Change-Id: Icceb9586b4051009a8843b4672b79daf22e07830
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index c1bdf3c2b779..d8c1f69b41af 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -4028,9 +4028,14 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
static cairo_font_options_t* (*gdk_screen_get_font_options)(GdkScreen*) =
(cairo_font_options_t*(*)(GdkScreen*))osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gdk_screen_get_font_options" );
if( gdk_screen_get_font_options != NULL )
-#endif
+ {
const cairo_font_options_t* pNewOptions = gdk_screen_get_font_options( pScreen );
+ aStyleSet.SetCairoFontOptions( pNewOptions );
+ }
+#else
+ const cairo_font_options_t* pNewOptions = gdk_screen_get_font_options( pScreen );
aStyleSet.SetCairoFontOptions( pNewOptions );
+#endif
// finally update the collected settings
rSettings.SetStyleSettings( aStyleSet );