aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-08-07 06:20:35 +0800
committerChris Lahey <clahey@src.gnome.org>2001-08-07 06:20:35 +0800
commitf479e873a4d281bd1554366235038df4a4bc3781 (patch)
treea657b78c9dbc0f3f68c29ae1a4d74074517b3c09 /shell/e-storage-set-view.c
parentee486f95dcd45fdd4acc5a1893f37e64310f8f15 (diff)
downloadgsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.gz
gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.zst
gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.zip
Turn on highlighting on a row by row basis.
2001-08-06 Christopher James Lahey <clahey@ximian.com> * e-storage-set-view.c (tree_drag_motion): Turn on highlighting on a row by row basis. svn path=/trunk/; revision=11715
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c15
1 files changed, 15 insertions, 0 deletions
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]