[file-roller] Revert "do not use a custom clipboard, the special mime-type is enough"
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Revert "do not use a custom clipboard, the special mime-type is enough"
- Date: Sun, 9 Oct 2016 06:34:35 +0000 (UTC)
commit df19186483a5e3edf2ff89cfd92c30bf85b9420f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Oct 9 08:21:47 2016 +0200
Revert "do not use a custom clipboard, the special mime-type is enough"
This reverts commit 26765b8b30c520a48e75ff563e874f8e2feb974b.
A different clipboard is actually useful for the following use case:
1 open an archive in file-roller
2 select a list of files
3 context menu -> cut
4 context menu -> paste
5 the paste dialog asks the user a destination
6 the user wants to copy and paste the destination from a selected
text from another application
the last step can't be done if a single clipboard is used, because
copying a text to the clipboard would overwrite the clipbaord content
that contains the files cut in step 3.
src/fr-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index f7e3408..bb31134 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -89,7 +89,7 @@
#define OCTET_ATOM gdk_atom_intern ("application/octet-stream", FALSE)
#define XFR_ATOM gdk_atom_intern ("XdndFileRoller0", FALSE)
-#define FR_CLIPBOARD GDK_SELECTION_CLIPBOARD
+#define FR_CLIPBOARD (gdk_atom_intern_static_string ("_FILE_ROLLER_SPECIAL_CLIPBOARD"))
#define FR_SPECIAL_URI_LIST (gdk_atom_intern_static_string ("application/file-roller-uri-list"))
static GtkTargetEntry clipboard_targets[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]