diff options
Diffstat (limited to 'gdk/gdkkeys.c')
-rw-r--r-- | gdk/gdkkeys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c index f29303f3ac..1573f9204a 100644 --- a/gdk/gdkkeys.c +++ b/gdk/gdkkeys.c @@ -503,7 +503,7 @@ gdk_keymap_lookup_key (GdkKeymap *keymap, * <literal><Control>plus</literal> accelerator <Shift> should * be masked out. * </para> - * <informalexample><programlisting> + * |[ * /* We want to ignore irrelevant modifiers like ScrollLock */ * #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK) * gdk_keymap_translate_keyboard_state (keymap, event->hardware_keycode, @@ -512,18 +512,18 @@ gdk_keymap_lookup_key (GdkKeymap *keymap, * if (keyval == GDK_PLUS && * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK) * /* Control was pressed */ - * </programlisting></informalexample> + * ]| * <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> - * <informalexample><programlisting> + * |[ * /* XXX Don't do this XXX */ * if (keyval == accel_keyval && * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed)) * /* Accelerator was pressed */ - * </programlisting></informalexample> + * ]| * <para> * However, this did not work if multi-modifier combinations were * used in the keymap, since, for instance, <literal><Control></literal> |