quartz: Implement gtk_clipboard_get_selection

This function is trivial and can be copied from the X11 implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=772281
This commit is contained in:
Philip Chimento 2016-11-02 23:37:29 -07:00 committed by John Ralls
parent 1b60361b4a
commit 187e652adb

View File

@ -1107,3 +1107,17 @@ _gtk_clipboard_store_all (void)
list = list->next;
}
}
/**
* gtk_clipboard_get_selection:
* @clipboard:
*
* Since: 3.22
*/
GdkAtom
gtk_clipboard_get_selection (GtkClipboard *clipboard)
{
g_return_val_if_fail (GTK_IS_CLIPBOARD (clipboard), GDK_NONE);
return clipboard->selection;
}