[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/12] ui/gtk-clipboard: use existing macros
From: |
marcandre . lureau |
Subject: |
[PATCH 03/12] ui/gtk-clipboard: use existing macros |
Date: |
Mon, 19 Jul 2021 11:26:45 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Rather than hardcoding strings
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
ui/gtk-clipboard.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/gtk-clipboard.c b/ui/gtk-clipboard.c
index bff28d2030..5e817ae55c 100644
--- a/ui/gtk-clipboard.c
+++ b/ui/gtk-clipboard.c
@@ -177,11 +177,11 @@ void gd_clipboard_init(GtkDisplayState *gd)
qemu_clipboard_peer_register(&gd->cbpeer);
gd->gtkcb[QEMU_CLIPBOARD_SELECTION_CLIPBOARD] =
- gtk_clipboard_get(gdk_atom_intern("CLIPBOARD", FALSE));
+ gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
gd->gtkcb[QEMU_CLIPBOARD_SELECTION_PRIMARY] =
- gtk_clipboard_get(gdk_atom_intern("PRIMARY", FALSE));
+ gtk_clipboard_get(GDK_SELECTION_PRIMARY);
gd->gtkcb[QEMU_CLIPBOARD_SELECTION_SECONDARY] =
- gtk_clipboard_get(gdk_atom_intern("SECONDARY", FALSE));
+ gtk_clipboard_get(GDK_SELECTION_SECONDARY);
g_signal_connect(gd->gtkcb[QEMU_CLIPBOARD_SELECTION_CLIPBOARD],
"owner-change", G_CALLBACK(gd_owner_change), gd);
--
2.32.0.93.g670b81a890
- [PATCH 00/12] Clipboard fixes (for 6.1?), marcandre . lureau, 2021/07/19
- [PATCH 01/12] ui/vdagent: fix leak on error path, marcandre . lureau, 2021/07/19
- [PATCH 02/12] ui/vdagent: remove copy-pasta comment, marcandre . lureau, 2021/07/19
- [PATCH 03/12] ui/gtk-clipboard: use existing macros,
marcandre . lureau <=
- [PATCH 04/12] ui/gtk-clipboard: fix clipboard enum typo, marcandre . lureau, 2021/07/19
- [PATCH 05/12] ui/clipboard: add helper to retrieve current clipboard, marcandre . lureau, 2021/07/19
- [PATCH 06/12] ui/clipboard: release owned grabs on unregister, marcandre . lureau, 2021/07/19
- [PATCH 07/12] ui/vdagent: unregister clipboard peer on finalize, marcandre . lureau, 2021/07/19
- [PATCH 08/12] ui/vdagent: split clipboard recv message handling, marcandre . lureau, 2021/07/19
- [PATCH 09/12] ui/vdagent: use qemu_clipboard_info helper, marcandre . lureau, 2021/07/19
- [PATCH 10/12] ui/gtk-clipboard: use qemu_clipboard_info helper, marcandre . lureau, 2021/07/19
- [PATCH 11/12] ui/vdagent: send release when no clipboard owner, marcandre . lureau, 2021/07/19