+2003-08-09 Noah Levitt <nlevitt@columbia.edu>
+
+ * gdk/gdkevents.h:
+ * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
+ docs on GdkFilterFunc and GdkFilterReturn.
+
2003-08-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
+2003-08-09 Noah Levitt <nlevitt@columbia.edu>
+
+ * gdk/gdkevents.h:
+ * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
+ docs on GdkFilterFunc and GdkFilterReturn.
+
2003-08-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
+2003-08-09 Noah Levitt <nlevitt@columbia.edu>
+
+ * gdk/gdkevents.h:
+ * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
+ docs on GdkFilterFunc and GdkFilterReturn.
+
2003-08-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
+2003-08-09 Noah Levitt <nlevitt@columbia.edu>
+
+ * gdk/gdkevents.h:
+ * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
+ docs on GdkFilterFunc and GdkFilterReturn.
+
2003-08-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
+2003-08-09 Noah Levitt <nlevitt@columbia.edu>
+
+ * gdk/gdkevents.h:
+ * docs/reference/gdk/tmpl/windows.sgml: Elaborate a bit more in the
+ docs on GdkFilterFunc and GdkFilterReturn.
+
2003-08-09 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
<!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
<para>
Specifies the type of function used to filter native events before they are
-converted to GDK events. A filter may translate the native event to a GDK
-event or handle it without translation.
+converted to GDK events.
+</para>
+
+<para>
+When a filter is called, @event is unpopulated, except for
+<literal>event->window</literal>. The filter may translate the native
+event to a GDK event and store the result in @event, or handle it without
+translation. If the filter translates the event and processing should
+continue, it should return <literal>GDK_FILTER_TRANSLATE</literal>.
</para>
@xevent: the native event to filter.
</para>
@GDK_FILTER_CONTINUE: event not handled, continue processing.
-@GDK_FILTER_TRANSLATE: translated event stored.
+@GDK_FILTER_TRANSLATE: native event translated into a GDK event and stored
+ in the <literal>event</literal> structure that was passed in.
@GDK_FILTER_REMOVE: event handled, terminate processing.
<!-- ##### TYPEDEF GdkXEvent ##### -->
typedef enum {
GDK_FILTER_CONTINUE, /* Event not handled, continue processesing */
- GDK_FILTER_TRANSLATE, /* Translated event stored */
+ GDK_FILTER_TRANSLATE, /* Native event translated into a GDK event and
+ stored in the "event" structure that was
+ passed in */
GDK_FILTER_REMOVE /* Terminate processing, removing event */
} GdkFilterReturn;