From 882e28269d85c84086b4fee1938f3cb11c82ce6f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 5 Jun 2002 15:47:23 +0000 Subject: Added debugging printfs. 2002-06-05 Christopher James Lahey * e-table-field-chooser-item.c: Added debugging printfs. * e-table-header-item.c: Added debugging printfs. (ethi_drag_motion): Don't subtract widget->allocation.* here. It seems that this value is affected by whether the table is using a click to add field. Not sure why. * e-table-item.c (eti_realize): Check for NULL selection here. svn path=/trunk/; revision=17118 --- widgets/table/e-table-header-item.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'widgets/table/e-table-header-item.c') diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 66b570ce10..142e63b809 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -592,9 +592,12 @@ do_drag_motion(ETableHeaderItem *ethi, guint time, gboolean recreate) { + d(g_print("In do_drag_motion\n")); + d(g_print("x = %d, y = %d, ethi->width = %d, ethi->height = %d\n", x, y, ethi->width, ethi->height)); if ((x >= 0) && (x <= (ethi->width)) && (y >= 0) && (y <= (ethi->height))){ int col; + d(g_print("In header\n")); col = ethi_find_col_by_x_nearest (ethi, x); @@ -718,8 +721,12 @@ ethi_drag_motion (GtkWidget *widget, GdkDragContext *context, g_free (headertype); + d(g_print ("y = %d, widget->allocation.y = %d, GTK_LAYOUT (widget)->vadjustment->value = %f\n", y, widget->allocation.y, GTK_LAYOUT (widget)->vadjustment->value)); + +#if 0 x -= widget->allocation.x; y -= widget->allocation.y; +#endif if (x < 20) direction |= ET_SCROLL_LEFT; @@ -850,6 +857,7 @@ ethi_drag_drop (GtkWidget *canvas, if (col != -1) { char *target = g_strdup_printf ("%s-%s", TARGET_ETABLE_COL_TYPE, ethi->dnd_code); + d(g_print ("ethi - %s\n", target)); gtk_drag_get_data (canvas, context, gdk_atom_intern(target, FALSE), time); g_free (target); } -- cgit