Commit 1014c413 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Rename from _gdk_x11_register_event_type(), added API docs.

Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/x11/gdkprivate-x11.h:
	* gdk/x11/gdkx.h:
	* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
	Rename from _gdk_x11_register_event_type(), added API docs.
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
	* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
	all callers.  (#121471, Bill Haneman)
parent e0fe66ee
Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkx.h:
* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
Rename from _gdk_x11_register_event_type(), added API docs.
* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
all callers. (#121471, Bill Haneman)
Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
......
Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkx.h:
* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
Rename from _gdk_x11_register_event_type(), added API docs.
* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
all callers. (#121471, Bill Haneman)
Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
......
Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkx.h:
* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
Rename from _gdk_x11_register_event_type(), added API docs.
* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
all callers. (#121471, Bill Haneman)
Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
......
Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkx.h:
* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
Rename from _gdk_x11_register_event_type(), added API docs.
* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
all callers. (#121471, Bill Haneman)
Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
......
Sun Dec 14 01:28:23 2003 Matthias Clasen <maclas@gmx.de>
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkx.h:
* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
Rename from _gdk_x11_register_event_type(), added API docs.
* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
all callers. (#121471, Bill Haneman)
Sat Dec 13 23:37:50 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_pixbuf): Document that the clip mask
......
Sun Dec 14 01:25:49 2003 Matthias Clasen <maclas@gmx.de>
* gdk/gdk-sections.txt: Add gdk_x11_register_standard_event_type.
Sat Dec 13 22:37:46 2003 Matthias Clasen <maclas@gmx.de>
* gtk/Makefile.am (HTML_IMAGES): Add
......
......@@ -1207,6 +1207,7 @@ gdk_x11_cursor_get_xdisplay
gdk_x11_display_get_xdisplay
gdk_x11_display_grab
gdk_x11_display_ungrab
gdk_x11_register_standard_event_type
gdk_x11_drawable_get_xdisplay
gdk_x11_drawable_get_xid
gdk_x11_font_get_name
......
......@@ -651,10 +651,31 @@ translate_key_event (GdkDisplay *display,
return;
}
/**
* gdk_x11_register_standard_event_type:
* @display: a #GdkDisplay
* @event_base: first event type code to register
* @n_events: number of event type codes to register
*
* Registers interest in receiving extension events with type codes
* between @event_base and <literal>event_base + n_events - 1</literal>.
* The registered events must have the window field in the same place
* as core X events (this is not the case for e.g. XKB extension events).
*
* If an event type is registered, events of this type will go through
* global and window-specific filters (see gdk_window_add_filter()).
* Unregistered events will only go through global filters.
* GDK may register the events of some X extensions on its own.
*
* This function should only be needed in unusual circumstances, e.g.
* when filtering XInput extension events on the root window.
*
* Since: 2.4
**/
void
_gdk_x11_register_event_type (GdkDisplay *display,
gint event_base,
gint n_events)
gdk_x11_register_standard_event_type (GdkDisplay *display,
gint event_base,
gint n_events)
{
GdkEventTypeX11 *event_type;
GdkDisplayX11 *display_x11;
......
......@@ -213,8 +213,8 @@ _gdk_windowing_image_init (GdkDisplay *display)
display_x11->have_shm_pixmaps = pixmaps;
event_base = XShmGetEventBase (xdisplay);
_gdk_x11_register_event_type (display,
event_base, ShmNumberEvents);
gdk_x11_register_standard_event_type (display,
event_base, ShmNumberEvents);
}
else
#endif /* USE_SHM */
......
......@@ -394,8 +394,8 @@ _gdk_input_common_init (GdkDisplay *display,
if (XQueryExtension (display_x11->xdisplay, "XInputExtension",
&ignore, &event_base, &ignore))
{
_gdk_x11_register_event_type (display,
event_base, 9 /* Number of events */);
gdk_x11_register_standard_event_type (display,
event_base, 9 /* Number of events */);
devices = XListInputDevices(display_x11->xdisplay, &num_devices);
......
......@@ -164,9 +164,6 @@ gboolean _gdk_x11_display_is_root_window (GdkDisplay *display,
void _gdk_x11_precache_atoms (GdkDisplay *display,
const gchar * const *atom_names,
gint n_atoms);
void _gdk_x11_register_event_type (GdkDisplay *display,
gint event_base,
gint n_events);
void _gdk_x11_events_init_screen (GdkScreen *screen);
void _gdk_x11_events_uninit_screen (GdkScreen *screen);
......
......@@ -171,6 +171,9 @@ G_CONST_RETURN gchar *gdk_x11_get_xatom_name (Atom xatom);
void gdk_x11_display_grab (GdkDisplay *display);
void gdk_x11_display_ungrab (GdkDisplay *display);
void gdk_x11_register_standard_event_type (GdkDisplay *display,
gint event_base,
gint n_events);
#if !defined(GDK_DISABLE_DEPRECATED) || defined(GDK_COMPILATION)
......
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