[balsa] fix copy/paste of URL's from text message parts



commit 2952fe5198103f7e73d378a541e7904b843d7e58
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Sat Jan 15 13:18:06 2022 +0100

    fix copy/paste of URL's from text message parts
    
    see https://www.freedesktop.org/wiki/Specifications/ClipboardsWiki/ and
    issue #65:
    
    > Application authors should follow the following guidelines to get
    correct behavior:
    > […]
    > explicit cut/copy commands (i.e. menu items, […]) should always set
    CLIPBOARD to the currently-selected data
    
    Signed-off-by: Albrecht Dreß <albrecht dress netcologne de>

 src/balsa-mime-widget-text.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 7c9e83aea..96859cbcd 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -549,7 +549,7 @@ url_copy_cb(GtkWidget * menu_item, message_url_t * uri)
 
     display = gtk_widget_get_display(menu_item);
     clipboard =
-        gtk_clipboard_get_for_display(display, GDK_SELECTION_PRIMARY);
+        gtk_clipboard_get_for_display(display, GDK_SELECTION_CLIPBOARD);
     gtk_clipboard_set_text(clipboard, uri->url, -1);
 }
 


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