diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-30 17:02:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-30 17:03:32 +0000 |
commit | 010775e037cd09c3a0fd7bad0bed6b881205e9dd (patch) | |
tree | 48dbb02e008d50d064f2501ad482b02f87979595 /vcl | |
parent | 6408b735283751cf6cacb8c758b99a2d90a9868a (diff) |
gtk3: scroll lock only available in >= 3.18.0
Change-Id: I1c22873c7dc989637ef4d12bf5a08395383e3779
(cherry picked from commit 4d3c91ee82de53589924ca72c22a745ffba6e6af)
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/gtksalframe.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index 4a9fa434c059..3b39a3cea09c 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -2794,8 +2794,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 |