summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-30 17:02:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-30 17:02:07 +0000
commit4d3c91ee82de53589924ca72c22a745ffba6e6af (patch)
treed65fa0e10c03a9d37289ef3478a53664ddb93936
parent1f2af3fb22a0a3be36fe8bc93f843ad7c2e3b7b8 (diff)
gtk3: scroll lock only available in >= 3.18.0
Change-Id: I1c22873c7dc989637ef4d12bf5a08395383e3779
-rw-r--r--vcl/unx/gtk/gtksalframe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx
index 64994bfa5c02..10ddfddde4e7 100644
--- a/vcl/unx/gtk/gtksalframe.cxx
+++ b/vcl/unx/gtk/gtksalframe.cxx
@@ -2778,8 +2778,10 @@ KeyIndicatorState GtkSalFrame::GetIndicatorState()
nState |= KeyIndicatorState::CAPSLOCK;
if (gdk_keymap_get_num_lock_state(pKeyMap))
nState |= KeyIndicatorState::NUMLOCK;
+#if GTK_CHECK_VERSION(3,18,0)
if (gdk_keymap_get_scroll_lock_state(pKeyMap))
nState |= KeyIndicatorState::SCROLLLOCK;
+#endif
return nState;
#endif