summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@src.gnome.org>2004-02-16 18:22:24 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2004-02-16 18:22:24 +0000
commitef9c23170532215e5a5ed484a032d3f6d5a3f939 (patch)
tree229d01f8b9e977336ce3a25f3a7a1225b5384528 /docs
parent9139e54dd37f6f0f887df1c5c038a36fa6e5acb3 (diff)
downloadgdk-pixbuf-ef9c23170532215e5a5ed484a032d3f6d5a3f939.tar.gz
Little addition to the modifiers example - Federico
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gdk/tmpl/windows.sgml5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/reference/gdk/tmpl/windows.sgml b/docs/reference/gdk/tmpl/windows.sgml
index de2d8aeb5..c2df7e5ea 100644
--- a/docs/reference/gdk/tmpl/windows.sgml
+++ b/docs/reference/gdk/tmpl/windows.sgml
@@ -1137,7 +1137,10 @@ Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
The following code shows how you should use GDK_MODIFIER_MASK to
test for
<keycombo><keycap>Control</keycap><keycap>F10</keycap></keycombo>
- being pressed.
+ being pressed. If you do something like testing for
+ <literal>event-&gt;state == GDK_CONTROL_MASK</literal>, your
+ program will not work correctly if some other modifier is
+ pressed, such as <keycap>NumLock</keycap>.
</para>
<programlisting>