From 48618eb6eb0d02a6bc74d19d0241ac6b0849d136 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 10 Dec 1999 07:36:51 +0000 Subject: fix this routine. 1999-12-09 Miguel de Icaza * e-table-header.c (e_table_header_col_diff): fix this routine. 1999-12-04 Miguel de Icaza * e-table-header-item.c (ethi_event): Started drag and drop support. * e-table-item.c (eti_table_model_changed): The columns are controled by the Header, not by the TableModel. * e-table-header-item.c (ethi_draw): Fixed redraw logic to support arbitrary header positioning. * e-cell.h: Revamped e-cell interface. We now provide the model column and the view column to all methods (so that the methods can talk to the view and to the model at the same time). * e-table-item.c: Update to new API * e-cell-test.c: Update to new API 1999-12-03 Miguel de Icaza * e-cell.c (e_cell_class_init): Provide emtpy methods for enter_edit, and leave_edit. * e-table-item.c: Killed draw cell. (eti_draw): Perform column mapping here. (e_table_item_leave_edit): ditto. (e_table_item_enter_edit): ditto. (eti_event): ditto. svn path=/trunk/; revision=1478 --- widgets/e-table-header-item.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'widgets/e-table-header-item.h') diff --git a/widgets/e-table-header-item.h b/widgets/e-table-header-item.h index ea2082018f..5522d24fae 100644 --- a/widgets/e-table-header-item.h +++ b/widgets/e-table-header-item.h @@ -34,6 +34,17 @@ typedef struct { * Ids */ int structure_change_id, dimension_change_id; + + /* + * For dragging columns + */ + guint maybe_drag:1; + guint dnd_ready:1; + int click_x, click_y; + int drag_col, drag_mark; + guint drag_motion_id, drag_end_id, drag_leave_id; + GnomeCanvasItem *drag_mark_item, *remove_item; + GdkBitmap *stipple; } ETableHeaderItem; typedef struct { -- cgit