diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-08-25 00:33:30 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-08-25 00:33:30 +0800 |
commit | f7120120cdd3c8bdfdc201a2bbcff847fa198d0b (patch) | |
tree | ce4b10fd342f9cb159b248f8acb0af59f13f5d1d /widgets/table/e-table-item.h | |
parent | 6c727437ab876b07d1095cc1ac45ad1d0e706c16 (diff) | |
download | gsoc2013-evolution-f7120120cdd3c8bdfdc201a2bbcff847fa198d0b.tar.gz gsoc2013-evolution-f7120120cdd3c8bdfdc201a2bbcff847fa198d0b.tar.zst gsoc2013-evolution-f7120120cdd3c8bdfdc201a2bbcff847fa198d0b.zip |
Added start_drag signals.
2001-08-24 Christopher James Lahey <clahey@ximian.com>
* 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
Diffstat (limited to 'widgets/table/e-table-item.h')
-rw-r--r-- | widgets/table/e-table-item.h | 21 |
1 files changed, 16 insertions, 5 deletions
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); |