diff options
author | John Ralls <jralls@ceridwen.us> | 2017-07-18 11:15:12 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2017-07-18 18:44:21 -0700 |
commit | ead480bc39d718060bb742783a4bf67966a761e3 (patch) | |
tree | 8802cda0807ae34ed019ec7673d4313ca233e1f3 /gtk/gtkclipboard-quartz.c | |
parent | 187e652adba1f0bbcc564f232a9504a73761e162 (diff) | |
download | gtk+-ead480bc39d718060bb742783a4bf67966a761e3.tar.gz |
Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c
Fixes bug 784323.
Diffstat (limited to 'gtk/gtkclipboard-quartz.c')
-rw-r--r-- | gtk/gtkclipboard-quartz.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtkclipboard-quartz.c b/gtk/gtkclipboard-quartz.c index 765e362801..b1150b9404 100644 --- a/gtk/gtkclipboard-quartz.c +++ b/gtk/gtkclipboard-quartz.c @@ -268,6 +268,15 @@ gtk_clipboard_get (GdkAtom selection) return gtk_clipboard_get_for_display (gdk_display_get_default (), selection); } +GtkClipboard * +gtk_clipboard_get_default (GdkDisplay *display) +{ + g_return_val_if_fail (display != NULL, NULL); + g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); + + return gtk_clipboard_get_for_display (display, GDK_SELECTION_CLIPBOARD); +} + static void clipboard_owner_destroyed (gpointer data) { @@ -1108,12 +1117,6 @@ _gtk_clipboard_store_all (void) } } -/** - * gtk_clipboard_get_selection: - * @clipboard: - * - * Since: 3.22 - */ GdkAtom gtk_clipboard_get_selection (GtkClipboard *clipboard) { |