[gtk+/wip/otte/clipboard: 84/107] linkbutton: Port to GdkClipboard



commit 853ef1c939a9ba9480669ae54efa66a90de89350
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 26 07:38:12 2017 +0100

    linkbutton: Port to GdkClipboard

 gtk/gtklinkbutton.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 7ff8326..4107f0d 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -332,9 +332,8 @@ copy_activate_cb (GtkWidget     *widget,
 {
   GtkLinkButtonPrivate *priv = link_button->priv;
   
-  gtk_clipboard_set_text (gtk_widget_get_old_clipboard (GTK_WIDGET (link_button),
-                                                   GDK_SELECTION_CLIPBOARD),
-                         priv->uri, -1);
+  gdk_clipboard_set_text (gtk_widget_get_clipboard (GTK_WIDGET (link_button)),
+                         priv->uri);
 }
 
 static void


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