diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2014-01-27 12:12:55 -0500 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2014-01-29 12:45:49 -0500 |
commit | 768bc44081550be18ee19697ed36b5f92298ef11 (patch) | |
tree | 8a0600c37dd2cc07fb00426c76922d3e3f1085e5 /gdk/gdkkeys.c | |
parent | a74ea0770dfc3c7feaa156ab26c26b44162d1820 (diff) | |
download | gtk+-768bc44081550be18ee19697ed36b5f92298ef11.tar.gz |
docs: use |[ ]| instead of <programlisting></programlisting>
https://bugzilla.gnome.org/show_bug.cgi?id=723119
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> |