gtk+ r21558 - in trunk: . gdk/win32



Author: tml
Date: Wed Oct  1 11:02:22 2008
New Revision: 21558
URL: http://svn.gnome.org/viewvc/gtk+?rev=21558&view=rev

Log:
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?



Modified:
   trunk/ChangeLog
   trunk/gdk/win32/gdkkeys-win32.c

Modified: trunk/gdk/win32/gdkkeys-win32.c
==============================================================================
--- trunk/gdk/win32/gdkkeys-win32.c	(original)
+++ trunk/gdk/win32/gdkkeys-win32.c	Wed Oct  1 11:02:22 2008
@@ -531,6 +531,12 @@
 }
 
 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]