[gtk+] Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c



commit ead480bc39d718060bb742783a4bf67966a761e3
Author: John Ralls <jralls ceridwen us>
Date:   Tue Jul 18 11:15:12 2017 -0700

    Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c
    
    Fixes bug 784323.

 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 765e362..b1150b9 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)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]