From 660a75cc995f416ecc018b6ee278582651240631 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 4 Aug 2000 14:14:44 +0000 Subject: Made drag events calculate a row and column and signal that information. 2000-08-04 Christopher James Lahey * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-item.c, e-table-item.h: Made drag events calculate a row and column and signal that information. * e-table-selection-model.c, e-table-selection-model.h: Changed do_something to take a GdkModifierType. svn path=/trunk/; revision=4529 --- widgets/e-table/e-table-selection-model.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'widgets/e-table/e-table-selection-model.c') diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c index 6dbba501a1..9bd3cb38ac 100644 --- a/widgets/e-table/e-table-selection-model.c +++ b/widgets/e-table/e-table-selection-model.c @@ -195,11 +195,11 @@ etsm_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) break; case ARG_CURSOR_ROW: - e_table_selection_model_do_something(etsm, GTK_VALUE_INT(*arg), etsm->cursor_col, FALSE, FALSE); + e_table_selection_model_do_something(etsm, GTK_VALUE_INT(*arg), etsm->cursor_col, 0); break; case ARG_CURSOR_COL: - e_table_selection_model_do_something(etsm, etsm->cursor_row, GTK_VALUE_INT(*arg), FALSE, FALSE); + e_table_selection_model_do_something(etsm, etsm->cursor_row, GTK_VALUE_INT(*arg), 0); break; } } @@ -321,9 +321,10 @@ change_selection(ETableSelectionModel *selection, int start, int end, gboolean g void e_table_selection_model_do_something (ETableSelectionModel *selection, guint row, guint col, - gboolean shift_p, - gboolean ctrl_p) + GdkModifierType state) { + gint shift_p = state & GDK_SHIFT_MASK; + gint ctrl_p = state & GDK_CONTROL_MASK; if (selection->row_count < 0) { if (selection->model) { selection->row_count = e_table_model_row_count(selection->model); -- cgit v1.2.3