Elaborate a bit more in the docs on GdkFilterFunc and GdkFilterReturn.
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-09 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-09 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-09 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-09 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-09 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
* gtk/gtkcalendar.c: Add and hook in gtk_calendar_scroll,
|
||||||
|
@ -746,8 +746,15 @@ Registers a window as a potential drop destination.
|
|||||||
<!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
|
<!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
|
||||||
<para>
|
<para>
|
||||||
Specifies the type of function used to filter native events before they are
|
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
|
converted to GDK events.
|
||||||
event or handle it without translation.
|
</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>
|
</para>
|
||||||
|
|
||||||
@xevent: the native event to filter.
|
@xevent: the native event to filter.
|
||||||
@ -762,7 +769,8 @@ Specifies the result of applying a #GdkFilterFunc to a native event.
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@GDK_FILTER_CONTINUE: event not handled, continue processing.
|
@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.
|
@GDK_FILTER_REMOVE: event handled, terminate processing.
|
||||||
|
|
||||||
<!-- ##### TYPEDEF GdkXEvent ##### -->
|
<!-- ##### TYPEDEF GdkXEvent ##### -->
|
||||||
|
@ -48,7 +48,9 @@ typedef void GdkXEvent; /* Can be cast to window system specific
|
|||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GDK_FILTER_CONTINUE, /* Event not handled, continue processesing */
|
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 */
|
GDK_FILTER_REMOVE /* Terminate processing, removing event */
|
||||||
} GdkFilterReturn;
|
} GdkFilterReturn;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user