[gtk+/gtk-2-16] Fix DND onto an empty icon view



commit 6e73d995f27e60655fc3a8245d71949ce83223f4
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 13:29:07 2009 -0400

    Fix DND onto an empty icon view
    
    This did not work due to a copy and paste bug from the time when
    the treeview DND code was turned into iconview DND code. Fixes
    bug 599484.

 gtk/gtkiconview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index c93a574..6097d5d 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -7161,7 +7161,7 @@ gtk_icon_view_set_drag_dest_item (GtkIconView              *icon_view,
   
   /* special case a drop on an empty model */
   icon_view->priv->empty_view_drop = FALSE;
-  if (pos == GTK_TREE_VIEW_DROP_BEFORE && path
+  if (pos == GTK_ICON_VIEW_DROP_ABOVE && path
       && gtk_tree_path_get_depth (path) == 1
       && gtk_tree_path_get_indices (path)[0] == 0)
     {



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