* src/widgets/modest-folder-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 21 Feb 2008 19:06:29 +0000 (19:06 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 21 Feb 2008 19:06:29 +0000 (19:06 +0000)
        * Now we highlight on all valid destinations of dnd, not only on
          valid ones that will be expanded (fixes NB#81198).

pmo-trunk-r4220

src/widgets/modest-folder-view.c

index 8aedf4c..4d854dd 100644 (file)
@@ -2512,9 +2512,9 @@ on_drag_motion (GtkWidget      *widget,
 
        /* Expand the selected row after 1/2 second */
        if (!gtk_tree_view_row_expanded (GTK_TREE_VIEW (widget), dest_row)) {
 
        /* Expand the selected row after 1/2 second */
        if (!gtk_tree_view_row_expanded (GTK_TREE_VIEW (widget), dest_row)) {
-               gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (widget), dest_row, pos);
                priv->timer_expander = g_timeout_add (500, expand_row_timeout, widget);
        }
                priv->timer_expander = g_timeout_add (500, expand_row_timeout, widget);
        }
+       gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (widget), dest_row, pos);
 
        /* Select the desired action. By default we pick MOVE */
        suggested_action = GDK_ACTION_MOVE;
 
        /* Select the desired action. By default we pick MOVE */
        suggested_action = GDK_ACTION_MOVE;
@@ -2531,8 +2531,9 @@ on_drag_motion (GtkWidget      *widget,
  out:
        if (folder)
                g_object_unref (folder);
  out:
        if (folder)
                g_object_unref (folder);
-       if (dest_row)
+       if (dest_row) {
                gtk_tree_path_free (dest_row);
                gtk_tree_path_free (dest_row);
+       }
        g_signal_stop_emission_by_name (widget, "drag-motion");
 
        return valid_location;
        g_signal_stop_emission_by_name (widget, "drag-motion");
 
        return valid_location;