summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@unixuser.org>2012-08-09 17:51:55 +0900
committerRui Matos <tiagomatos@gmail.com>2012-09-10 15:03:25 +0200
commit7937b5d9f1cc64b72d2bc7119aeeeade5b2f3111 (patch)
tree0f7c34fcf038fcc85fb0358e7114a4d8c80ec806 /gdk/gdkkeys.c
parenteb9223c008ccf1c2faabf512645894d3e4efe157 (diff)
downloadgtk+-7937b5d9f1cc64b72d2bc7119aeeeade5b2f3111.tar.gz
gdk: fix GI annotation and document for {map,add}_virtual_modifiers
https://bugzilla.gnome.org/show_bug.cgi?id=677559
Diffstat (limited to 'gdk/gdkkeys.c')
-rw-r--r--gdk/gdkkeys.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index 6463a1e51a..6b46dbf7df 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -584,12 +584,11 @@ gdk_keymap_translate_keyboard_state (GdkKeymap *keymap,
/**
* gdk_keymap_add_virtual_modifiers:
* @keymap: a #GdkKeymap
- * @state: (out): pointer to the modifier mask to change
+ * @state: (inout): pointer to the modifier mask to change
*
- * Adds virtual modifiers (i.e. Super, Hyper and Meta) which correspond
- * to the real modifiers (i.e Mod2, Mod3, ...) in @modifiers.
- * are set in @state to their non-virtual counterparts (i.e. Mod2,
- * Mod3,...) and set the corresponding bits in @state.
+ * Maps the non-virtual modifiers (i.e Mod2, Mod3, ...) which are set
+ * in @state to the virtual modifiers (i.e. Super, Hyper and Meta) and
+ * set the corresponding bits in @state.
*
* GDK already does this before delivering key events, but for
* compatibility reasons, it only sets the first virtual modifier
@@ -612,7 +611,7 @@ gdk_keymap_add_virtual_modifiers (GdkKeymap *keymap,
/**
* gdk_keymap_map_virtual_modifiers:
* @keymap: a #GdkKeymap
- * @state: (out): pointer to the modifier state to map
+ * @state: (inout): pointer to the modifier state to map
*
* Maps the virtual modifiers (i.e. Super, Hyper and Meta) which
* are set in @state to their non-virtual counterparts (i.e. Mod2,