aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
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')
-rw-r--r--widgets/e-table/ChangeLog5
-rw-r--r--widgets/e-table/e-table-header-item.c11
-rw-r--r--widgets/table/e-table-header-item.c11
3 files changed, 23 insertions, 4 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index a8d7790ecf..65a8c7c99e 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-09 Anders Carlsson <andersca@gnu.org>
+
+ * e-table-header-item.c (ethi_drag_motion): Don't draw drop
+ marker when the layout won't be changed by the drop.
+
2000-07-08 Ettore Perazzoli <ettore@helixcode.com>
* e-table-item.c (eti_table_model_changed): Removed an unused
diff --git a/widgets/e-table/e-table-header-item.c b/widgets/e-table/e-table-header-item.c
index 7851338c9e..bbad304182 100644
--- a/widgets/e-table/e-table-header-item.c
+++ b/widgets/e-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);
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);