summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-01 20:35:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-02 14:43:36 +0000
commit17f6ebef2f3edbb7876524118dfe633025dc289b (patch)
treeb9155cdfb0f717bf292d3b74cccc87cd3a2bb5ad /vcl/unx/gtk3
parent22c276885e5ebd9c0c1ec06ccb6b021a471a452f (diff)
valgrind: scary warning that the cairo font options were deleted before use
Change-Id: I58427aafb30eca64a67bcf7dd9a7738d8da3e085 (cherry picked from commit 3520b0f82aa2146958fbc1bda1cf7e9b5beb9a5d)
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
index 3a991e63c715..e0cc8d5121e8 100644
--- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
@@ -1450,7 +1450,6 @@ static inline ::Color getColorFromColor( const GdkColor& rCol )
void GtkSalGraphics::updateSettings( AllSettings& rSettings )
{
- GdkScreen* pScreen = gtk_widget_get_screen( mpWindow );
GtkStyleContext* pStyle = gtk_widget_get_style_context( mpWindow );
GtkSettings* pSettings = gtk_widget_get_settings( mpWindow );
StyleSettings aStyleSet = rSettings.GetStyleSettings();
@@ -1799,8 +1798,6 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet.SetToolbarIconSize( ToolbarIconSize::Large );
- const cairo_font_options_t* pNewOptions = gdk_screen_get_font_options(pScreen);
- aStyleSet.SetCairoFontOptions( pNewOptions );
// finally update the collected settings
rSettings.SetStyleSettings( aStyleSet );
#if OSL_DEBUG_LEVEL > 1