diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-02-02 01:22:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-02-02 01:22:14 -0500 |
commit | 245c385ae7df972ced8316c07902b0d2cabc9da3 (patch) | |
tree | fafbea95c288d94eba369c0d5f9808a1a6193622 /gdk/gdkkeys.c | |
parent | 30cc1512e634417eb040bd5a287736c1ef7782d9 (diff) | |
download | gtk+-245c385ae7df972ced8316c07902b0d2cabc9da3.tar.gz |
Docs: Don't use note elements
In most cases, the text itself makes the message clear enough.
Diffstat (limited to 'gdk/gdkkeys.c')
-rw-r--r-- | gdk/gdkkeys.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c index 85fb32f0ca..dbd0a5eb72 100644 --- a/gdk/gdkkeys.c +++ b/gdk/gdkkeys.c @@ -495,14 +495,13 @@ gdk_keymap_lookup_key (GdkKeymap *keymap, * @state. For convenience, #GdkEventKey already contains the translated * keyval, so this function isn't as useful as you might think. * - * <note><para> * @consumed_modifiers gives modifiers that should be masked out * from @state when comparing this key press to a hot key. For * instance, on a US keyboard, the <literal>plus</literal> * symbol is shifted, so when comparing a key press to a * <literal><Control>plus</literal> accelerator <Shift> should * be masked out. - * </para> + * * |[<!-- language="C" --> * /* We want to ignore irrelevant modifiers like ScrollLock */; * #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK) @@ -513,18 +512,18 @@ gdk_keymap_lookup_key (GdkKeymap *keymap, * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK) * /* Control was pressed */ * ]| - * <para> + * * An older interpretation @consumed_modifiers was that it contained * all modifiers that might affect the translation of the key; * this allowed accelerators to be stored with irrelevant consumed - * modifiers, by doing:</para> + * modifiers, by doing: * |[<!-- language="C" --> * /* XXX Don't do this XXX */ * if (keyval == accel_keyval && * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed)) * /* Accelerator was pressed */ * ]| - * <para> + * * However, this did not work if multi-modifier combinations were * used in the keymap, since, for instance, <literal><Control></literal> * would be masked out even if only <literal><Control><Alt></literal> @@ -536,7 +535,6 @@ gdk_keymap_lookup_key (GdkKeymap *keymap, * accelerators, you should always store them with consumed modifiers * removed. Store <literal><Control>plus</literal>, * not <literal><Control><Shift>plus</literal>, - * </para></note> * * Return value: %TRUE if there was a keyval bound to the keycode/state/group **/ |