[gtk+] linkbutton: Port to GdkClipboard
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] linkbutton: Port to GdkClipboard
- Date: Sun, 3 Dec 2017 04:53:40 +0000 (UTC)
commit 909b6877bd18c02f69b07f3c5d46702119974b4a
Author: Benjamin Otte <otte redhat com>
Date: Sun Nov 26 07:38:12 2017 +0100
linkbutton: Port to GdkClipboard
gtk/gtklinkbutton.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 7ff8326..489178a 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -55,7 +55,6 @@
#include <string.h>
-#include "gtkclipboard.h"
#include "gtkdnd.h"
#include "gtklabel.h"
#include "gtkmain.h"
@@ -332,9 +331,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]