[gtk+] docs: Work around cpp complaining about comments in docs in the standard way
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] docs: Work around cpp complaining about comments in docs in the standard way
- Date: Wed, 29 Jan 2014 19:46:09 +0000 (UTC)
commit 48b359ea534457933fb43f62025c17db474b2611
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Jan 27 15:06:32 2014 -0500
docs: Work around cpp complaining about comments in docs in the standard way
https://bugzilla.gnome.org/show_bug.cgi?id=723119
gdk/gdkkeys.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index 6d0555f..85fb32f 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -504,14 +504,14 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
* 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)
+ * /* 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,
* 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)
- * /* Control was pressed */
+ * (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK)
+ * /* Control was pressed */
* ]|
* <para>
* An older interpretation @consumed_modifiers was that it contained
@@ -519,10 +519,10 @@ gdk_keymap_lookup_key (GdkKeymap *keymap,
* this allowed accelerators to be stored with irrelevant consumed
* modifiers, by doing:</para>
* |[<!-- language="C" -->
- * /* XXX Don't do this XXX */
+ * /* XXX Don't do this XXX */
* if (keyval == accel_keyval &&
- * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed))
- * /* Accelerator was pressed */
+ * (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed))
+ * /* Accelerator was pressed */
* ]|
* <para>
* However, this did not work if multi-modifier combinations were
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]