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
This commit is contained in:
Miguel de Icaza
2000-04-13 01:28:13 +00:00
committed by Miguel de Icaza
parent cf9536db2b
commit fcc1befdb1
3 changed files with 30 additions and 31 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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;