summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-18 12:31:46 +0100
committerportix <portix@gmx.net>2012-01-18 12:31:46 +0100
commitba33ff75f9c21b189dd048b026d7fb9beeea58a5 (patch)
treed3b78996bf6ad0c920350429b83a3dc263b2fb88 /src/commands.c
parenta8431c908e4c1f4e340572ebc2d1cd3a619d66c2 (diff)
downloaddwb-ba33ff75f9c21b189dd048b026d7fb9beeea58a5.zip
Set primary selection in entry on shift-insert; do not uri-escape download filenames in downloadlabel
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index 3f8fcebe..9a5778ec 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -425,10 +425,9 @@ commands_yank(KeyMap *km, Arg *arg) {
DwbStatus
commands_paste(KeyMap *km, Arg *arg) {
GdkAtom atom = GDK_POINTER_TO_ATOM(arg->p);
- GtkClipboard *clipboard = gtk_clipboard_get(atom);
char *text = NULL;
- if ( (text = gtk_clipboard_wait_for_text(clipboard)) ) {
+ if ( (text = dwb_clipboard_get_text(atom)) ) {
if (dwb.state.nv == OPEN_NORMAL)
dwb_set_open_mode(arg->n);
dwb_load_uri(NULL, text);