[gtk+/gdk-backend-quartz: 28/29] Implement selection related vfuncs for quartz
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend-quartz: 28/29] Implement selection related vfuncs for quartz
- Date: Wed, 22 Dec 2010 02:33:21 +0000 (UTC)
commit a1e2d06b838221ed82780961c545103db1d44009
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 17 13:29:54 2010 -0500
Implement selection related vfuncs for quartz
gdk/quartz/gdkdisplay-quartz.c | 3 +++
gdk/quartz/gdkprivate-quartz.h | 18 ++++++++++++++++--
gdk/quartz/gdkselection-quartz.c | 32 +++++++++++++++++---------------
3 files changed, 36 insertions(+), 17 deletions(-)
---
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index 5b003fe..fa31e36 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -256,4 +256,7 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
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;
+ display_class->send_selection_notify = _gdk_quartz_display_send_selection_notify;
+ display_class->get_selection_property = _gdk_quartz_display_get_selection_property;
+ display_class->convert_selection = _gdk_quartz_display_convert_selection;
}
diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h
index 89bbd75..8e2d811 100644
--- a/gdk/quartz/gdkprivate-quartz.h
+++ b/gdk/quartz/gdkprivate-quartz.h
@@ -283,7 +283,21 @@ gboolean _gdk_quartz_display_set_selection_owner (GdkDisplay *display,
gboolean send_event);
GdkWindow * _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
GdkAtom selection);
-
-
+void _gdk_quartz_display_send_selection_notify (GdkDisplay *display,
+ GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time);
+gint _gdk_quartz_display_get_selection_property (GdkDisplay *display,
+ GdkWindow *requestor,
+ guchar **data,
+ GdkAtom *ret_type,
+ gint *ret_format);
+void _gdk_quartz_display_convert_selection (GdkDisplay *display,
+ GdkWindow *requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ guint32 time);
#endif /* __GDK_PRIVATE_QUARTZ_H__ */
diff --git a/gdk/quartz/gdkselection-quartz.c b/gdk/quartz/gdkselection-quartz.c
index 946a2c2..486c523 100644
--- a/gdk/quartz/gdkselection-quartz.c
+++ b/gdk/quartz/gdkselection-quartz.c
@@ -45,31 +45,33 @@ _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
}
void
-gdk_selection_convert (GdkWindow *requestor,
- GdkAtom selection,
- GdkAtom target,
- guint32 time)
+_gdk_quartz_display_convert_selection (GdkDisplay *display,
+ GdkWindow *requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ guint32 time)
{
/* FIXME: Implement */
}
gint
-gdk_selection_property_get (GdkWindow *requestor,
- guchar **data,
- GdkAtom *ret_type,
- gint *ret_format)
+_gdk_quartz_display_get_selection_property (GdkDisplay *display,
+ GdkWindow *requestor,
+ guchar **data,
+ GdkAtom *ret_type,
+ gint *ret_format)
{
/* FIXME: Implement */
return 0;
}
void
-gdk_selection_send_notify_for_display (GdkDisplay *display,
- guint32 requestor,
- GdkAtom selection,
- GdkAtom target,
- GdkAtom property,
- guint32 time)
+_gdk_quartz_display_send_selection_send_notify (GdkDisplay *display,
+ GdkNativeWindow requestor,
+ GdkAtom selection,
+ GdkAtom target,
+ GdkAtom property,
+ guint32 time)
{
/* FIXME: Implement */
}
@@ -77,7 +79,7 @@ gdk_selection_send_notify_for_display (GdkDisplay *display,
gint
gdk_text_property_to_text_list_for_display (GdkDisplay *display,
GdkAtom encoding,
- gint format,
+ gint format,
const guchar *text,
gint length,
gchar ***list)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]