vcl/unx/gtk/gtksalframe.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4d3c91ee82de53589924ca72c22a745ffba6e6af
Author: Caolán McNamara <caol...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to