Implement has_pending and queue_events vfuncs for quartz

This commit is contained in:
Matthias Clasen 2010-12-17 11:46:22 -05:00 committed by Kristian Rietveld
parent 733c8fc8e7
commit 3232be603a
3 changed files with 11 additions and 7 deletions

View File

@ -227,6 +227,8 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
display_class->beep = gdk_quartz_display_beep;
display_class->sync = _gdk_quartz_display_sync;
display_class->flush = _gdk_quartz_display_flush;
display_class->queue_events = _gdk_quartz_display_queue_events;
display_class->has_pending = _gdk_quartz_display_has_pending;
display_class->get_default_group = gdk_quartz_display_get_default_group;
display_class->supports_selection_notification = gdk_quartz_display_supports_selection_notification;
display_class->request_selection_notification = gdk_quartz_display_request_selection_notification;

View File

@ -68,10 +68,10 @@ _gdk_quartz_events_init (void)
}
gboolean
gdk_events_pending (void)
_gdk_quartz_display_has_pending (GdkDisplay *display)
{
return (_gdk_event_queue_find_first (_gdk_display) ||
(_gdk_quartz_event_loop_check_pending ()));
return (_gdk_event_queue_find_first (display) ||
(_gdk_quartz_event_loop_check_pending ()));
}
static void
@ -1296,7 +1296,7 @@ gdk_event_translate (GdkEvent *event,
}
void
_gdk_events_queue (GdkDisplay *display)
_gdk_quartz_display_queue_events (GdkDisplay *display)
{
NSEvent *nsevent;

View File

@ -149,9 +149,11 @@ GdkDragContext * _gdk_quartz_window_drag_begin (GdkWindow *window,
GList *targets);
void _gdk_quartz_display_sync (GdkDisplay *display);
void _gdk_quartz_display_flush (GdkDisplay *display);
GList * _gdk_quartz_display_list_devices (GdkDisplay *dpy);
void _gdk_quartz_display_sync (GdkDisplay *display);
void _gdk_quartz_display_flush (GdkDisplay *display);
GList * _gdk_quartz_display_list_devices (GdkDisplay *display);
void _gdk_quartz_display_queue_events (GdkDisplay *display);
gboolean _gdk_quartz_display_has_pending (GdkDisplay *display);
GdkDisplay * _gdk_quartz_display_open (const gchar *name);