diff options
author | Miguel de Icaza <miguel@gnu.org> | 2000-04-13 09:28:13 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-04-13 09:28:13 +0800 |
commit | fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a (patch) | |
tree | 17350685ef04b84648d5b61aa249eddd646c155c /widgets | |
parent | cf9536db2b049bd6a0c8f805acfa122ca695f678 (diff) | |
download | gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar.gz gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar.bz2 gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar.lz gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar.xz gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.tar.zst gsoc2013-evolution-fcc1befdb11ab47dcd5c334b3ddf0342ff762b8a.zip |
Remove test for source. We will fix this later.
2000-04-12 Miguel de Icaza <miguel@gnu.org>
* e-table-header-item.c (ethi_drag_motion): Remove test for
source. We will fix this later.
svn path=/trunk/; revision=2413
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/e-table/e-table-header-item.c | 28 | ||||
-rw-r--r-- | widgets/table/e-table-header-item.c | 28 |
3 files changed, 30 insertions, 31 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 7fa9b6dafd..e1b93253b2 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,6 +1,9 @@ 2000-04-12 Miguel de Icaza <miguel@gnu.org> - * e-table-header-item.c (ethi_end_resize): Reset resize_guide here. + * e-table-header-item.c (ethi_drag_motion): Remove test for + source. We will fix this later. + + (ethi_end_resize): Reset resize_guide here. 2000-04-11 Miguel de Icaza <miguel@helixcode.com> diff --git a/widgets/e-table/e-table-header-item.c b/widgets/e-table/e-table-header-item.c index d39a1f81d9..7f7494787a 100644 --- a/widgets/e-table/e-table-header-item.c +++ b/widgets/e-table/e-table-header-item.c @@ -443,25 +443,23 @@ ethi_drag_motion (GtkObject *canvas, GdkDragContext *context, return FALSE; gdk_drag_status (context, 0, time); - if (GTK_WIDGET(canvas) == gtk_drag_get_source_widget (context)) { - if ((x >= ethi->x1) && (x <= (ethi->x1 + ethi->width)) && - (y >= ethi->y1) && (y <= (ethi->y1 + ethi->height))){ - int col; - - col = ethi_find_col_by_x (ethi, x); - - if (col != -1){ - ethi_remove_destroy_marker (ethi); - ethi_add_drop_marker (ethi, col); - gdk_drag_status (context, context->suggested_action, time); - } else { - ethi_remove_drop_marker (ethi); - ethi_add_destroy_marker (ethi); - } + if ((x >= ethi->x1) && (x <= (ethi->x1 + ethi->width)) && + (y >= ethi->y1) && (y <= (ethi->y1 + ethi->height))){ + int col; + + col = ethi_find_col_by_x (ethi, x); + + if (col != -1){ + ethi_remove_destroy_marker (ethi); + ethi_add_drop_marker (ethi, col); + gdk_drag_status (context, context->suggested_action, time); } else { ethi_remove_drop_marker (ethi); ethi_add_destroy_marker (ethi); } + } else { + ethi_remove_drop_marker (ethi); + ethi_add_destroy_marker (ethi); } return TRUE; diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index d39a1f81d9..7f7494787a 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -443,25 +443,23 @@ ethi_drag_motion (GtkObject *canvas, GdkDragContext *context, return FALSE; gdk_drag_status (context, 0, time); - if (GTK_WIDGET(canvas) == gtk_drag_get_source_widget (context)) { - if ((x >= ethi->x1) && (x <= (ethi->x1 + ethi->width)) && - (y >= ethi->y1) && (y <= (ethi->y1 + ethi->height))){ - int col; - - col = ethi_find_col_by_x (ethi, x); - - if (col != -1){ - ethi_remove_destroy_marker (ethi); - ethi_add_drop_marker (ethi, col); - gdk_drag_status (context, context->suggested_action, time); - } else { - ethi_remove_drop_marker (ethi); - ethi_add_destroy_marker (ethi); - } + if ((x >= ethi->x1) && (x <= (ethi->x1 + ethi->width)) && + (y >= ethi->y1) && (y <= (ethi->y1 + ethi->height))){ + int col; + + col = ethi_find_col_by_x (ethi, x); + + if (col != -1){ + ethi_remove_destroy_marker (ethi); + ethi_add_drop_marker (ethi, col); + gdk_drag_status (context, context->suggested_action, time); } else { ethi_remove_drop_marker (ethi); ethi_add_destroy_marker (ethi); } + } else { + ethi_remove_drop_marker (ethi); + ethi_add_destroy_marker (ethi); } return TRUE; |