Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc.

2008-09-29  Matthias Clasen  <mclasen@redhat.com>

        Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc.

        * gdk/gdk.symbols:
        * gdk/gdkkeys.[ch]: Add a new GdkKeymap::state-changed signal, and
        a gdk_keymap_get_caps_lock_state function.

        * gdk/x11/gdkkeys-x11.c: Implement it here. For now, only emit
        state-changed when caps lock lockedness changes.

        * gdk/x11/gdkdisplay-x11.c: Also select for modifier lock status
        changes in the XkbSelectEventDetails call.


svn path=/trunk/; revision=21545
This commit is contained in:
Matthias Clasen
2008-09-29 20:40:45 +00:00
committed by Matthias Clasen
parent 978e780018
commit 859aaf903d
8 changed files with 97 additions and 13 deletions

View File

@ -1,3 +1,7 @@
2008-09-29 Matthias Clasen <mclasen@redhat.com>
* gdk/gdk-sections.txt: Add gdk_keymap_get_caps_locks_state.
2008-09-17 Matthias Clasen <mclasen@redhat.com>
* === Released 2.14.2 ===

View File

@ -992,6 +992,7 @@ gdk_keymap_get_entries_for_keyval
gdk_keymap_get_entries_for_keycode
gdk_keymap_get_direction
gdk_keymap_have_bidi_layouts
gdk_keymap_get_caps_lock_state
<SUBSECTION>
gdk_keyval_name