summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkkeys-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2003-08-27 22:59:47 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-08-27 22:59:47 +0000
commitce940e61a582585c31cc8776cee442c2ba046d02 (patch)
tree9ac3d6497be601c9efd188c1257f30ce2d87183c /gdk/x11/gdkkeys-x11.c
parentcbc20c4dde539ed01dede8356d9cd1dc56479799 (diff)
downloadgdk-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.c8
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>
* &sol;* We want to ignore irrelevant modifiers like ScrollLock *&sol;
- * #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)
+ * &num;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);
+ * &amp;keyval, NULL, NULL, &amp;consumed);
* if (keyval == GDK_PLUS &&
- * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK)
+ * (event->state &amp; ~consumed &amp; ALL_ACCELS_MASK) == GDK_CONTROL_MASK)
* &sol;* Control was pressed *&sol;
* </programlisting></informalexample>
* <para>
@@ -1130,7 +1130,7 @@ translate_keysym (GdkKeymapX11 *keymap_x11,
* <informalexample><programlisting>
* &sol;* XXX Don't do this XXX *&sol;
* if (keyval == accel_keyval &&
- * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed))
+ * (event->state &amp; ~consumed &amp; ALL_ACCELS_MASK) == (accel_mods &amp; ~consumed))
* &sol;* Accelerator was pressed *&sol;
* </programlisting></informalexample>
* <para>