diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-08-04 22:14:44 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-08-04 22:14:44 +0800 |
commit | 660a75cc995f416ecc018b6ee278582651240631 (patch) | |
tree | 072f90be0799fef5baf18e87383fbbd9155cf343 /widgets/e-table/e-table-selection-model.c | |
parent | ce5a8e3224fad1c20760809198a508e28eeb4c04 (diff) | |
download | gsoc2013-evolution-660a75cc995f416ecc018b6ee278582651240631.tar.gz gsoc2013-evolution-660a75cc995f416ecc018b6ee278582651240631.tar.zst gsoc2013-evolution-660a75cc995f416ecc018b6ee278582651240631.zip |
Made drag events calculate a row and column and signal that information.
2000-08-04 Christopher James Lahey <clahey@helixcode.com>
* 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
Diffstat (limited to 'widgets/e-table/e-table-selection-model.c')
-rw-r--r-- | widgets/e-table/e-table-selection-model.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); |