diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-07 06:20:35 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-07 06:20:35 +0800 |
commit | f479e873a4d281bd1554366235038df4a4bc3781 (patch) | |
tree | a657b78c9dbc0f3f68c29ae1a4d74074517b3c09 /shell | |
parent | ee486f95dcd45fdd4acc5a1893f37e64310f8f15 (diff) | |
download | gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.gz gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.bz2 gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.lz gsoc2013-evolution-f479e873a4d281bd1554366235038df4a4bc3781.tar.xz 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')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-storage-set-view.c | 15 |
2 files changed, 20 insertions, 0 deletions
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 <clahey@ximian.com> + + * e-storage-set-view.c (tree_drag_motion): Turn on highlighting on + a row by row basis. + 2001-08-04 Ettore Perazzoli <ettore@ximian.com> * 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] |