diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-12 21:05:23 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-02-15 12:00:16 +0100 |
commit | 550b70e6a3a241710cdda3313d46721a5e0bdf17 (patch) | |
tree | 4dedb7f42361862c5e9372a22c5b01450d2b0fbc /vcl/unx/gtk3 | |
parent | d6d93bb1e1078ba42d08d15a60fe3edd27c831d4 (diff) |
gtk3: only available since 3.12.0
(cherry picked from commit 2b60321b21ff9ada64576f5711950b616b8a25ba)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Change-Id: I23a9907fa0ec3258afdb69285f31b6ce5a3521a0
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx index d73a036f3b6e..5205d137b55b 100644 --- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx @@ -2002,6 +2002,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) ::Color aHighlightTextColor = getColor( color ); aStyleSet.SetMenuHighlightTextColor( aHighlightTextColor ); +#if GTK_CHECK_VERSION(3, 12, 0) // hyperlink colors gtk_style_context_set_state(mpLinkButtonStyle, GTK_STATE_FLAG_LINK); gtk_style_context_get_color(mpLinkButtonStyle, gtk_style_context_get_state(mpLinkButtonStyle), &text_color); @@ -2009,6 +2010,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) gtk_style_context_set_state(mpLinkButtonStyle, GTK_STATE_FLAG_VISITED); gtk_style_context_get_color(mpLinkButtonStyle, gtk_style_context_get_state(mpLinkButtonStyle), &text_color); aStyleSet.SetVisitedLinkColor(getColor(text_color)); +#endif #if GTK_CHECK_VERSION(3, 19, 2) { |