From 3922dda5e4ac32be521f69ab6a1ad716fc1bfac2 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Fri, 1 Jun 2007 16:46:11 +0000 Subject: [PATCH] * src/modest-ui-actions.c: * Fixed the cut/copy/paste clipboard actions. It was storing the information in GDK_SELECTION_PRIMARY for widgets that let you choose the clipboard to use. Now it uses GDK_SELECTION_CLIPBOARD, the expected one (fixes NB#56935). pmo-trunk-r2040 --- src/modest-ui-actions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index f9d8a05..ce758b1 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2060,7 +2060,7 @@ modest_ui_actions_on_cut (GtkAction *action, GtkTextBuffer *buffer; GtkClipboard *clipboard; - clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY); + clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (focused_widget)); gtk_text_buffer_cut_clipboard (buffer, clipboard, TRUE); } @@ -2073,7 +2073,7 @@ modest_ui_actions_on_copy (GtkAction *action, GtkClipboard *clipboard; GtkWidget *focused_widget; - clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY); + clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); focused_widget = gtk_window_get_focus (GTK_WINDOW (window)); if (GTK_IS_LABEL (focused_widget)) { gtk_clipboard_set_text (clipboard, gtk_label_get_text (GTK_LABEL (focused_widget)), -1); @@ -2111,7 +2111,7 @@ modest_ui_actions_on_paste (GtkAction *action, GtkTextBuffer *buffer; GtkClipboard *clipboard; - clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY); + clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (focused_widget)); gtk_text_buffer_paste_clipboard (buffer, clipboard, NULL, TRUE); } -- 1.7.9.5