[evolution-data-server] I#249 - EBufferTagger: Add link-related options into the context menu ][
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] I#249 - EBufferTagger: Add link-related options into the context menu ][
- Date: Thu, 17 Sep 2020 15:30:45 +0000 (UTC)
commit 298b800c1e3aa9869707f9ee4bdae8e94c8cfc0f
Author: Milan Crha <mcrha redhat com>
Date: Thu Sep 17 17:29:15 2020 +0200
I#249 - EBufferTagger: Add link-related options into the context menu ][
Change the "copy" operation to match what EWebView in Evolution does.
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/249
src/libedataserverui/e-buffer-tagger.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/libedataserverui/e-buffer-tagger.c b/src/libedataserverui/e-buffer-tagger.c
index 8700ade8b..12fc50b13 100644
--- a/src/libedataserverui/e-buffer-tagger.c
+++ b/src/libedataserverui/e-buffer-tagger.c
@@ -696,8 +696,13 @@ textview_copy_uri_cb (GtkWidget *widget,
g_return_if_fail (uri != NULL);
- clipboard = gtk_clipboard_get_default (gtk_widget_get_display (widget));
+ clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY);
gtk_clipboard_set_text (clipboard, uri, -1);
+ gtk_clipboard_store (clipboard);
+
+ clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
+ gtk_clipboard_set_text (clipboard, uri, -1);
+ gtk_clipboard_store (clipboard);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]