[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Mon Nov 30 09:03:37 PST 2015
vcl/unx/gtk/gtksalframe.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 4d3c91ee82de53589924ca72c22a745ffba6e6af
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 30 17:02:07 2015 +0000
gtk3: scroll lock only available in >= 3.18.0
Change-Id: I1c22873c7dc989637ef4d12bf5a08395383e3779
diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx
index 64994bf..10ddfdd 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
More information about the Libreoffice-commits
mailing list