[gtk+] icon-browser: Port to new clipboard
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] icon-browser: Port to new clipboard
- Date: Sun, 3 Dec 2017 04:55:46 +0000 (UTC)
commit c8edc6ed58e3b17a40fc7c21491c0727231811ae
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 2 15:41:22 2017 +0100
icon-browser: Port to new clipboard
demos/icon-browser/iconbrowserwin.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index 1ce4524..47ad1e1 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -299,10 +299,10 @@ static void
copy_to_clipboard (GtkButton *button,
IconBrowserWindow *win)
{
- GtkClipboard *clipboard;
+ GdkClipboard *clipboard;
- clipboard = gtk_clipboard_get_default (gdk_display_get_default ());
- gtk_clipboard_set_text (clipboard, gtk_window_get_title (GTK_WINDOW (win->details)), -1);
+ clipboard = gtk_widget_get_clipboard (GTK_WIDGET (win));
+ gdk_clipboard_set_text (clipboard, gtk_window_get_title (GTK_WINDOW (win->details)));
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]