[gtk+/wip/otte/clipboard: 110/117] recentchooser: Port to GdkClipboard



commit 90cdb9a029d0ffdac5be569c6bc58e54e107b21f
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 26 07:54:55 2017 +0100

    recentchooser: Port to GdkClipboard

 gtk/gtkrecentchooserdefault.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 5f03ea3..223ba5a 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -1462,9 +1462,8 @@ copy_activated_cb (GtkMenuItem *menu_item,
 
   utf8_uri = gtk_recent_info_get_uri_display (info);
   
-  gtk_clipboard_set_text (gtk_widget_get_old_clipboard (GTK_WIDGET (impl),
-                                                   GDK_SELECTION_CLIPBOARD),
-                          utf8_uri, -1);
+  gdk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (impl)),
+                          utf8_uri);
 
   gtk_recent_info_unref (info);
   g_free (utf8_uri);


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