Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index bd50b38..9936ce1 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -421,6 +421,19 @@ ev_view_expose_event (GtkWidget *widget,
return FALSE;
}
+void
+ev_view_copy (EvView *ev_view)
+{
+ GtkClipboard *clipboard;
+ char *text;
+
+ text = ev_document_get_text (ev_view->document, &ev_view->selection);
+ clipboard = gtk_widget_get_clipboard (GTK_WIDGET (ev_view),
+ GDK_SELECTION_CLIPBOARD);
+ gtk_clipboard_set_text (clipboard, text, -1);
+ g_free (text);
+}
+
static void
ev_view_primary_get_cb (GtkClipboard *clipboard,
GtkSelectionData *selection_data,