aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@src.gnome.org>2000-07-09 18:10:17 +0800
committerAnders Carlsson <andersca@src.gnome.org>2000-07-09 18:10:17 +0800
commit4bd225790a301c68d7a5df24617f071881d705b9 (patch)
tree7f355e37ddad54d0414d5fdb350dd572dc2182c8 /widgets/table/e-table-header-item.c
parent523df261ca5ab0782ef6f7414eaaecca6d6af2ad (diff)
downloadgsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar.gz
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar.bz2
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar.lz
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar.xz
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.tar.zst
gsoc2013-evolution-4bd225790a301c68d7a5df24617f071881d705b9.zip
Don't draw drop markers when the layout won't be changed by the drop.
svn path=/trunk/; revision=4005
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 7851338c9e..bbad304182 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -474,8 +474,15 @@ ethi_drag_motion (GtkObject *canvas, GdkDragContext *context,
int col;
col = ethi_find_col_by_x_nearest (ethi, x);
-
- if (col != -1){
+
+ if (col == ethi->drag_col || col == ethi->drag_col + 1) {
+ if (ethi->drag_col != -1)
+ ethi_remove_destroy_marker (ethi);
+
+ ethi_remove_drop_marker (ethi);
+ gdk_drag_status (context, context->suggested_action, time);
+ }
+ else if (col != -1){
if (ethi->drag_col != -1)
ethi_remove_destroy_marker (ethi);