summaryrefslogtreecommitdiff
path: root/libnautilus-private
diff options
context:
space:
mode:
authorMathieu Lacage <mathieu@eazel.com>2000-10-26 06:04:41 +0000
committerMathieu Lacage <mathieu@src.gnome.org>2000-10-26 06:04:41 +0000
commit326088de595938651685e792b9b19e1983bb661b (patch)
tree165a5588b145cb192fcb0c0f4df20704ce2ce285 /libnautilus-private
parent2723237f41be620a63eb34b9be140b858cd7ccb1 (diff)
downloadnautilus-326088de595938651685e792b9b19e1983bb661b.tar.gz
Make prelighted icons not prelighted when you leave the list view without
2000-10-26 Mathieu Lacage <mathieu@eazel.com> Make prelighted icons not prelighted when you leave the list view without dropping. Also, move the actual prelighting operation from fm-list-view to nautilus-list. Also, remove FIXME about this bug since it is fixed. * libnautilus-extensions/nautilus-list.c: (nautilus_list_drag_leave), (nautilus_list_find_icon_list_drop_target), (nautilus_list_prelight_if_necessary): * src/file-manager/fm-list-view.c: (fm_list_handle_dragged_items):
Diffstat (limited to 'libnautilus-private')
-rw-r--r--libnautilus-private/nautilus-list.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/libnautilus-private/nautilus-list.c b/libnautilus-private/nautilus-list.c
index 45a62de5c..f87e99bf1 100644
--- a/libnautilus-private/nautilus-list.c
+++ b/libnautilus-private/nautilus-list.c
@@ -2869,6 +2869,8 @@ nautilus_list_drag_leave (GtkWidget *widget, GdkDragContext *context, guint time
drag_info = list->details->drag_info;
nautilus_list_stop_auto_scroll (NAUTILUS_LIST (list));
+
+ nautilus_list_set_drag_prelight_row (list, -1);
}
gboolean
@@ -2899,7 +2901,7 @@ nautilus_list_find_icon_list_drop_target (NautilusList *list,
be moved there too.
*/
- return g_strdup ("file:///");
+ return g_strdup ("file:///");
}
static void
@@ -3041,9 +3043,6 @@ nautilus_list_prelight_if_necessary (NautilusList *list, GdkDragContext *context
{
gboolean is_prelight_necessary;
- /* FIXME: bugzilla.eazel.com 2948
- pavel will finish it */
-
/* should we prelight the current row ? */
gtk_signal_emit (GTK_OBJECT (list),
list_signals[HANDLE_DRAGGED_ITEMS],
@@ -3052,6 +3051,16 @@ nautilus_list_prelight_if_necessary (NautilusList *list, GdkDragContext *context
x, y,
list->details->drag_info->data_type,
&is_prelight_necessary);
+
+ if (is_prelight_necessary) {
+ /* Mark this item to be prelit */
+ NautilusCListRow *row;
+
+ row = nautilus_list_row_at (list, y);
+ nautilus_list_set_drag_prelight_row (list, y);
+ } else {
+ nautilus_list_set_drag_prelight_row (list, -1);
+ }
}