summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-19 04:08:17 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-19 04:08:17 (GMT)
commit3c2b347da556dc5d88df3a36813dfa733f5a9d20 (patch)
treea872832fd1e38d3fea923bb41599d2352e9181a7 /gui
parent9bb732fcaa6db14aa7289169a4e6802cfb2a7853 (diff)
downloadeeshow-3c2b347da556dc5d88df3a36813dfa733f5a9d20.zip
eeshow-3c2b347da556dc5d88df3a36813dfa733f5a9d20.tar.gz
eeshow-3c2b347da556dc5d88df3a36813dfa733f5a9d20.tar.bz2
gui/sheet.c (sheet_click): send text to the clipboard (uses xsel)
Copy & paste in Gtk/Gdk seems to have issues in a multi-head setup. xsel works fine, so we just use that for now.
Diffstat (limited to 'gui')
-rw-r--r--gui/sheet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 0f2a63d..15bec46 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -30,6 +30,7 @@
#include "gui/help.h"
#include "gui/icons.h"
#include "gui/timer.h"
+#include "gui/clipboard.h"
#include "gui/common.h"
@@ -442,7 +443,7 @@ static bool sheet_click(void *user, int x, int y)
s = record_find_text(gfx_user(curr_sheet->gfx), show_extra, ex, ey);
if (s)
- fprintf(stderr, "%s\n", s);
+ copy_to_clipboard(s);
return 1;
}