* src/modest-ui-actions.c:
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 1 Jun 2007 16:46:11 +0000 (16:46 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 1 Jun 2007 16:46:11 +0000 (16:46 +0000)
        * 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

index f9d8a05..ce758b1 100644 (file)
@@ -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);
        }