Skip to content
Snippets Groups Projects
Commit 87998b7a authored by Enrico Tröger's avatar Enrico Tröger
Browse files

When pasting text in the speed reader, query only the main clipboard

This mostly reverts the previous related commit as it turned out that
it would most often paste the selected text from the search field
which we don't want.
parent 5a7847bb
No related branches found
No related tags found
No related merge requests found
......@@ -548,14 +548,9 @@ static void sr_clear_clicked_cb(GtkButton *button, GtkTextBuffer *buffer)
static void sr_paste_clicked_cb(GtkButton *button, GtkTextBuffer *buffer)
{
gchar *text;
gtk_text_buffer_set_text(buffer, "", 0);
text = dict_get_clipboard_contents();
if (text != NULL)
{
gtk_text_buffer_set_text(buffer, text, -1);
g_free(text);
}
GtkClipboard *clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD);
gtk_text_buffer_set_text(buffer, "", 0);
gtk_text_buffer_paste_clipboard(buffer, clipboard, NULL, TRUE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment