mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
Implement selection related vfuncs for quartz
This commit is contained in:
parent
762548d303
commit
de41790470
@ -256,4 +256,7 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
|
|||||||
display_class->get_keymap = _gdk_quartz_display_get_keymap;
|
display_class->get_keymap = _gdk_quartz_display_get_keymap;
|
||||||
display_class->get_selection_owner = _gdk_quartz_display_get_selection_owner;
|
display_class->get_selection_owner = _gdk_quartz_display_get_selection_owner;
|
||||||
display_class->set_selection_owner = _gdk_quartz_display_set_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;
|
||||||
}
|
}
|
||||||
|
@ -283,7 +283,21 @@ gboolean _gdk_quartz_display_set_selection_owner (GdkDisplay *display,
|
|||||||
gboolean send_event);
|
gboolean send_event);
|
||||||
GdkWindow * _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
|
GdkWindow * _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
|
||||||
GdkAtom selection);
|
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__ */
|
#endif /* __GDK_PRIVATE_QUARTZ_H__ */
|
||||||
|
@ -45,31 +45,33 @@ _gdk_quartz_display_get_selection_owner (GdkDisplay *display,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gdk_selection_convert (GdkWindow *requestor,
|
_gdk_quartz_display_convert_selection (GdkDisplay *display,
|
||||||
GdkAtom selection,
|
GdkWindow *requestor,
|
||||||
GdkAtom target,
|
GdkAtom selection,
|
||||||
guint32 time)
|
GdkAtom target,
|
||||||
|
guint32 time)
|
||||||
{
|
{
|
||||||
/* FIXME: Implement */
|
/* FIXME: Implement */
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
gdk_selection_property_get (GdkWindow *requestor,
|
_gdk_quartz_display_get_selection_property (GdkDisplay *display,
|
||||||
guchar **data,
|
GdkWindow *requestor,
|
||||||
GdkAtom *ret_type,
|
guchar **data,
|
||||||
gint *ret_format)
|
GdkAtom *ret_type,
|
||||||
|
gint *ret_format)
|
||||||
{
|
{
|
||||||
/* FIXME: Implement */
|
/* FIXME: Implement */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gdk_selection_send_notify_for_display (GdkDisplay *display,
|
_gdk_quartz_display_send_selection_send_notify (GdkDisplay *display,
|
||||||
guint32 requestor,
|
GdkNativeWindow requestor,
|
||||||
GdkAtom selection,
|
GdkAtom selection,
|
||||||
GdkAtom target,
|
GdkAtom target,
|
||||||
GdkAtom property,
|
GdkAtom property,
|
||||||
guint32 time)
|
guint32 time)
|
||||||
{
|
{
|
||||||
/* FIXME: Implement */
|
/* FIXME: Implement */
|
||||||
}
|
}
|
||||||
@ -77,7 +79,7 @@ gdk_selection_send_notify_for_display (GdkDisplay *display,
|
|||||||
gint
|
gint
|
||||||
gdk_text_property_to_text_list_for_display (GdkDisplay *display,
|
gdk_text_property_to_text_list_for_display (GdkDisplay *display,
|
||||||
GdkAtom encoding,
|
GdkAtom encoding,
|
||||||
gint format,
|
gint format,
|
||||||
const guchar *text,
|
const guchar *text,
|
||||||
gint length,
|
gint length,
|
||||||
gchar ***list)
|
gchar ***list)
|
||||||
|
Loading…
Reference in New Issue
Block a user