mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Implement has_pending and queue_events vfuncs for quartz
This commit is contained in:
parent
733c8fc8e7
commit
3232be603a
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user