aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);