[evolution] Bug 768013 - [Wayland] Drag and drop copies emails instead of moving them
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 768013 - [Wayland] Drag and drop copies emails instead of moving them
- Date: Thu, 30 Jun 2016 10:33:27 +0000 (UTC)
commit a665180a7db92829554926563b6ab5e4421375e4
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 30 12:33:03 2016 +0200
Bug 768013 - [Wayland] Drag and drop copies emails instead of moving them
mail/em-folder-tree.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 2c8592a..ce5ab9f 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2651,17 +2651,17 @@ folder_tree_drop_target (EMFolderTree *folder_tree,
targets = targets->next;
}
} else {
- gint i;
-
- while (targets != NULL) {
- for (i = 0; i < NUM_DROP_TYPES; i++) {
- if (targets->data == (gpointer) drop_atoms[i]) {
- atom = drop_atoms[i];
+ GList *link;
+ gint ii;
+
+ /* The drop_atoms[] is sorted in the preference order. */
+ for (ii = 0; ii < NUM_DROP_TYPES; ii++) {
+ for (link = targets; link; link = g_list_next (link)) {
+ if (link->data == (gpointer) drop_atoms[ii]) {
+ atom = drop_atoms[ii];
goto done;
}
}
-
- targets = targets->next;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]