From f7120120cdd3c8bdfdc201a2bbcff847fa198d0b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 24 Aug 2001 16:33:30 +0000 Subject: Added start_drag signals. 2001-08-24 Christopher James Lahey * e-table-group-container.c, e-table-group-leaf.c, e-table-group-leaf.h, e-table-group.c, e-table-group.h: Added start_drag signals. * e-table-item.c, e-table-item.h (eti_event): Send the start_drag signal. Fixes Ximian bug #807. * e-table.c, e-table.h, e-tree.c, e-tree.h: Added start_drag signal. Made default handler start drag & drop if we're set to automatically handle dnd. Ripped out the code to handle watching events for dnd since start_drag does this now. svn path=/trunk/; revision=12437 --- widgets/table/e-table-item.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'widgets/table/e-table-item.h') diff --git a/widgets/table/e-table-item.h b/widgets/table/e-table-item.h index 87394dc26d..efa55482ac 100644 --- a/widgets/table/e-table-item.h +++ b/widgets/table/e-table-item.h @@ -70,6 +70,16 @@ typedef struct { guint in_key_press : 1; + guint maybe_in_drag : 1; + guint in_drag : 1; + guint grabbed : 1; + + int drag_col; + int drag_row; + int drag_x; + int drag_y; + guint drag_state; + /* * Realized views, per column */ @@ -107,12 +117,13 @@ typedef struct { typedef struct { GnomeCanvasItemClass parent_class; - void (*cursor_change) (ETableItem *eti, int row); + void (*cursor_change) (ETableItem *eti, int row); void (*cursor_activated) (ETableItem *eti, int row); - void (*double_click) (ETableItem *eti, int row, int col, GdkEvent *event); - gint (*right_click) (ETableItem *eti, int row, int col, GdkEvent *event); - gint (*click) (ETableItem *eti, int row, int col, GdkEvent *event); - gint (*key_press) (ETableItem *eti, int row, int col, GdkEvent *event); + void (*double_click) (ETableItem *eti, int row, int col, GdkEvent *event); + gint (*right_click) (ETableItem *eti, int row, int col, GdkEvent *event); + gint (*click) (ETableItem *eti, int row, int col, GdkEvent *event); + gint (*key_press) (ETableItem *eti, int row, int col, GdkEvent *event); + gint (*start_drag) (ETableItem *eti, int row, int col, GdkEvent *event); } ETableItemClass; GtkType e_table_item_get_type (void); -- cgit