Implement selection owner vfuncs for quartz

This commit is contained in:
Matthias Clasen 2010-12-17 13:25:04 -05:00 committed by Kristian Rietveld
parent 547d674ce5
commit 762548d303
3 changed files with 18 additions and 7 deletions

View File

@ -254,4 +254,6 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
display_class->event_data_free = _gdk_quartz_display_event_data_free;
display_class->create_window_impl = _gdk_quartz_display_create_window_impl;
display_class->get_keymap = _gdk_quartz_display_get_keymap;
display_class->get_selection_owner = _gdk_quartz_display_get_selection_owner;
display_class->set_selection_owner = _gdk_quartz_display_set_selection_owner;
}

View File

@ -276,5 +276,14 @@ void _gdk_quartz_window_change_property (GdkWindow *window,
void _gdk_quartz_window_delete_property (GdkWindow *window,
GdkAtom property);
gboolean _gdk_quartz_display_set_selection_owner (GdkDisplay *display,
GdkWindow *owner,
GdkAtom selection,
guint32 time,
gboolean send_event);
GdkWindow * _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
GdkAtom selection);
#endif /* __GDK_PRIVATE_QUARTZ_H__ */

View File

@ -26,19 +26,19 @@
#include "gdkproperty.h"
gboolean
gdk_selection_owner_set_for_display (GdkDisplay *display,
GdkWindow *owner,
GdkAtom selection,
guint32 time,
gint send_event)
_gdk_quartz_display_set_selection_owner_set (GdkDisplay *display,
GdkWindow *owner,
GdkAtom selection,
guint32 time,
gint send_event)
{
/* FIXME: Implement */
return TRUE;
}
GdkWindow*
gdk_selection_owner_get_for_display (GdkDisplay *display,
GdkAtom selection)
_gdk_quartz_display_get_selection_owner (GdkDisplay *display,
GdkAtom selection)
{
/* FIXME: Implement */
return NULL;