diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-06 04:47:54 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-06 04:47:54 +0800 |
commit | 7547460503d6d937f93406d01e1feb23e61f6872 (patch) | |
tree | aa83f01f40530dab2b6ab15e6e877012b4e48f3f | |
parent | 1b0b47301057e96a711098823aa58438b5cbb69f (diff) | |
download | gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar.gz gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar.bz2 gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar.lz gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar.xz gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.tar.zst gsoc2013-evolution-7547460503d6d937f93406d01e1feb23e61f6872.zip |
Got rid of the misused button variable here.
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-table-item.c (eti_event): Got rid of the misused button
variable here.
svn path=/trunk/; revision=13468
-rw-r--r-- | widgets/table/e-table-item.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index d229d0de4c..86fedb64db 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -2112,8 +2112,6 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) #if 0 double x1, y1; #endif - GdkEventButton button; - if (e->button.button == 5 || e->button.button == 4) return FALSE; @@ -2137,18 +2135,17 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) "cursor_col", &model_col, NULL); - button.x -= e_table_header_col_diff (eti->header, 0, model_to_view_col (eti, model_col)); - button.y -= e_table_item_row_diff (eti, 0, model_to_view_row (eti, model_row)); + e->button.x -= e_table_header_col_diff (eti->header, 0, model_to_view_col (eti, model_col)); + e->button.y -= e_table_item_row_diff (eti, 0, model_to_view_row (eti, model_row)); #if 0 - button = *(GdkEventButton *)e; button.x = x1; button.y = y1; #endif if (model_row != -1 && model_col != -1) { gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK], - model_row, model_col, &button); + model_row, model_col, e); d(g_print("Double click\n")); } } |