Commit ce940e61 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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.
parent cbc20c4d
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
......
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
......
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
......
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
......
2003-08-28 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Markup
fix in the docs.
* gtk/gtkuimanager.c: Change the XML format:
<Root> element is replaced by <ui>,
<menu> element is replaced by <menubar>,
......
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)
2003-08-26 Matthias Clasen <maclas@gmx.de>
* gtk/gtk-sections.txt: Rename GtkMenuMerge to GtkUIManager
......
......@@ -203,7 +203,8 @@ Generated when the pointer moves.
the mouse.
@state: a bit-mask representing the state of the modifier keys (e.g. Control,
Shift and Alt) and the pointer buttons. See #GdkModifierType.
@is_hint:
@is_hint: set to 1 if this event is just a hint, see the %GDK_POINTER_MOTION_HINT_MASK
value of #GdkEventMask.
@device: the device where the event originated.
@x_root: the x coordinate of the pointer relative to the root of the screen.
@y_root: the y coordinate of the pointer relative to the root of the screen.
......@@ -471,7 +472,7 @@ Specifies the state of a toplevel window.
@GDK_WINDOW_STATE_ICONIFIED: the window is minimized.
@GDK_WINDOW_STATE_MAXIMIZED: the window is maximized.
@GDK_WINDOW_STATE_STICKY: the window is sticky.
@GDK_WINDOW_STATE_FULLSCREEN: the window is maximized without decorations.
@GDK_WINDOW_STATE_FULLSCREEN: the window is maximized without decorations.
@GDK_WINDOW_STATE_ABOVE: the window is kept above other windows.
@GDK_WINDOW_STATE_BELOW: the window is kept below other windows.
......
......@@ -97,8 +97,9 @@ number of %GDK_MOTION_NOTIFY events received. Normally a %GDK_MOTION_NOTIFY
event is received each time the mouse moves. However, if the application
spends a lot of time processing the event (updating the display, for example),
it can easily lag behind the position of the mouse. When using the
%GDK_POINTER_MOTION_HINT_MASK the server will only send %GDK_MOTION_NOTIFY
events when the application asks for them, by calling gdk_window_get_pointer().
%GDK_POINTER_MOTION_HINT_MASK the server will only send a single %GDK_MOTION_NOTIFY
event (which is marked as a hint) until the application asks for more, by calling
gdk_window_get_pointer().
</para>
@GDK_EXPOSURE_MASK:
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment