[gthumb/ext] only allow drop_left and drop_right to better spot the drop position



commit a0a6da744ea6ce010aff98b2b775d14a38079d79
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Aug 30 11:41:40 2009 +0200

    only allow drop_left and drop_right to better spot the drop position

 gthumb/gth-icon-view.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-icon-view.c b/gthumb/gth-icon-view.c
index da98c7a..e4274cd 100644
--- a/gthumb/gth-icon-view.c
+++ b/gthumb/gth-icon-view.c
@@ -247,6 +247,12 @@ gth_icon_view_set_drag_dest_pos (GthFileView    *self,
 
 			indices = gtk_tree_path_get_indices (path);
 			*pos = indices[0];
+			if ((drop_pos == GTK_ICON_VIEW_DROP_INTO)
+			    || (drop_pos == GTK_ICON_VIEW_DROP_ABOVE)
+			    || (drop_pos == GTK_ICON_VIEW_DROP_BELOW))
+			{
+				drop_pos = GTK_ICON_VIEW_DROP_LEFT;
+			}
 			if (drop_pos == GTK_ICON_VIEW_DROP_RIGHT)
 				*pos = *pos + 1;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]