From 762548d30379d436453bc170e8b4e8f622453d14 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Dec 2010 13:25:04 -0500 Subject: [PATCH] Implement selection owner vfuncs for quartz --- gdk/quartz/gdkdisplay-quartz.c | 2 ++ gdk/quartz/gdkprivate-quartz.h | 9 +++++++++ gdk/quartz/gdkselection-quartz.c | 14 +++++++------- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c index c3edb04bd4..5b003fe827 100644 --- a/gdk/quartz/gdkdisplay-quartz.c +++ b/gdk/quartz/gdkdisplay-quartz.c @@ -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; } diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h index 4bda4d00d7..89bbd7522f 100644 --- a/gdk/quartz/gdkprivate-quartz.h +++ b/gdk/quartz/gdkprivate-quartz.h @@ -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__ */ diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c index c327eb9ef0..946a2c2bfc 100644 --- a/gdk/quartz/gdkselection-quartz.c +++ b/gdk/quartz/gdkselection-quartz.c @@ -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;