summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-10-01 11:02:22 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-10-01 11:02:22 +0000
commit139965125b2e9b3091a8fb9d1daa2277e8536734 (patch)
tree476e9fee67d4550a3a1c079364b0a01771f6bddb
parent7d7dfa73a4f9a64535dfb4daeccc7e3818c42196 (diff)
downloadgtk+-139965125b2e9b3091a8fb9d1daa2277e8536734.tar.gz
Implement trivially on Windows. Not sure if something more complex is
2008-10-01 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (gdk_keymap_get_caps_lock_state): Implement trivially on Windows. Not sure if something more complex is actually needed, more specifically whether the function needs to differentiate between "Caps Lock" and "Shift Lock" semantics? svn path=/trunk/; revision=21558
-rw-r--r--ChangeLog7
-rw-r--r--gdk/win32/gdkkeys-win32.c6
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 95488cb930..03be98bcb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-01 Tor Lillqvist <tml@novell.com>
+
+ * gdk/win32/gdkkeys-win32.c (gdk_keymap_get_caps_lock_state):
+ Implement trivially on Windows. Not sure if something more complex
+ is actually needed, more specifically whether the function needs
+ to differentiate between "Caps Lock" and "Shift Lock" semantics?
+
2008-10-01 Simos Xenitellis <simos@gnome.org>
Bug 554506 – combining diacritics broken, became deadkeys
diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c
index e86ea97061..30cb7316d3 100644
--- a/gdk/win32/gdkkeys-win32.c
+++ b/gdk/win32/gdkkeys-win32.c
@@ -531,6 +531,12 @@ gdk_keymap_have_bidi_layouts (GdkKeymap *keymap)
}
gboolean
+gdk_keymap_get_caps_lock_state (GdkKeymap *keymap)
+{
+ return ((GetKeyState (VK_CAPITAL) & 1) != 0);
+}
+
+gboolean
gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap,
guint keyval,
GdkKeymapKey **keys,