From f479e873a4d281bd1554366235038df4a4bc3781 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 6 Aug 2001 22:20:35 +0000 Subject: Turn on highlighting on a row by row basis. 2001-08-06 Christopher James Lahey * e-storage-set-view.c (tree_drag_motion): Turn on highlighting on a row by row basis. svn path=/trunk/; revision=11715 --- shell/ChangeLog | 5 +++++ shell/e-storage-set-view.c | 15 +++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index e9e5551161..1317e34e7c 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-08-06 Christopher James Lahey + + * e-storage-set-view.c (tree_drag_motion): Turn on highlighting on + a row by row basis. + 2001-08-04 Ettore Perazzoli * e-shell-folder-title-bar.c (e_shell_folder_title_bar_construct): diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 347e1d87ab..e704219cae 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1130,6 +1130,8 @@ tree_drag_motion (ETree *tree, storage_set_view = E_STORAGE_SET_VIEW (tree); priv = storage_set_view->priv; + e_tree_drag_highlight (tree, row, -1); + g_print ("%s -- row %d x %d y %d\n", __FUNCTION__, row, x, y); path = e_tree_node_at_row (E_TREE (storage_set_view), row); @@ -1175,6 +1177,17 @@ tree_drag_motion (ETree *tree, return TRUE; } +static void +tree_drag_leave (ETree *etree, + int row, + ETreePath path, + int col, + GdkDragContext *context, + unsigned int time) +{ + e_tree_drag_unhighlight (etree); +} + static gboolean tree_drag_drop (ETree *etree, int row, @@ -1185,6 +1198,7 @@ tree_drag_drop (ETree *etree, int y, unsigned int time) { + e_tree_drag_unhighlight (etree); if (context->targets != NULL) { gtk_drag_get_data (GTK_WIDGET (etree), context, GPOINTER_TO_INT (context->targets->data), @@ -1703,6 +1717,7 @@ class_init (EStorageSetViewClass *klass) etree_class->tree_drag_data_delete = tree_drag_data_delete; etree_class->tree_drag_motion = tree_drag_motion; etree_class->tree_drag_drop = tree_drag_drop; + etree_class->tree_drag_leave = tree_drag_leave; etree_class->tree_drag_data_received = tree_drag_data_received; signals[FOLDER_SELECTED] -- cgit