Kaydet (Commit) 4d3c91ee authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: scroll lock only available in >= 3.18.0

Change-Id: I1c22873c7dc989637ef4d12bf5a08395383e3779
üst 1f2af3fb
...@@ -2778,8 +2778,10 @@ KeyIndicatorState GtkSalFrame::GetIndicatorState() ...@@ -2778,8 +2778,10 @@ KeyIndicatorState GtkSalFrame::GetIndicatorState()
nState |= KeyIndicatorState::CAPSLOCK; nState |= KeyIndicatorState::CAPSLOCK;
if (gdk_keymap_get_num_lock_state(pKeyMap)) if (gdk_keymap_get_num_lock_state(pKeyMap))
nState |= KeyIndicatorState::NUMLOCK; nState |= KeyIndicatorState::NUMLOCK;
#if GTK_CHECK_VERSION(3,18,0)
if (gdk_keymap_get_scroll_lock_state(pKeyMap)) if (gdk_keymap_get_scroll_lock_state(pKeyMap))
nState |= KeyIndicatorState::SCROLLLOCK; nState |= KeyIndicatorState::SCROLLLOCK;
#endif
return nState; return nState;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment