diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-08-27 22:59:47 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-08-27 22:59:47 +0000 |
commit | ce940e61a582585c31cc8776cee442c2ba046d02 (patch) | |
tree | 9ac3d6497be601c9efd188c1257f30ce2d87183c /gdk/x11/gdkkeys-x11.c | |
parent | cbc20c4dde539ed01dede8356d9cd1dc56479799 (diff) | |
download | gdk-pixbuf-ce940e61a582585c31cc8776cee442c2ba046d02.tar.gz |
Improve PointerHint docs. Explain is_hint field in GdkEventMotion.
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/tmpl/events.sgml: Improve PointerHint docs.
* gdk/tmpl/event_structs.sgml: Explain is_hint field in GdkEventMotion.
(#120542)
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
Diffstat (limited to 'gdk/x11/gdkkeys-x11.c')
-rw-r--r-- | gdk/x11/gdkkeys-x11.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c index 5b26b34a1..d58f862dd 100644 --- a/gdk/x11/gdkkeys-x11.c +++ b/gdk/x11/gdkkeys-x11.c @@ -1114,12 +1114,12 @@ translate_keysym (GdkKeymapX11 *keymap_x11, * </para> * <informalexample><programlisting> * /* We want to ignore irrelevant modifiers like ScrollLock */ - * #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK) + * #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK) * gdk_keymap_translate_keyboard_state (keymap, event->hardware_keycode, * event->state, event->group, - * &keyval, NULL, NULL, &consumed); + * &keyval, NULL, NULL, &consumed); * if (keyval == GDK_PLUS && - * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK) + * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK) * /* Control was pressed */ * </programlisting></informalexample> * <para> @@ -1130,7 +1130,7 @@ translate_keysym (GdkKeymapX11 *keymap_x11, * <informalexample><programlisting> * /* XXX Don't do this XXX */ * if (keyval == accel_keyval && - * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed)) + * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed)) * /* Accelerator was pressed */ * </programlisting></informalexample> * <para> |