aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-08 07:28:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-08 07:28:30 +0800
commit640883f04d9d76a933a2410ef3f100848ad7ddfd (patch)
treea814976e78141ed39eda422c01647cd55935a3d7 /widgets/table/e-table-item.c
parent042281235aa1d98f24f7c7e7af69b1ba1b5d6ff0 (diff)
downloadgsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar.gz
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar.bz2
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar.lz
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar.xz
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.tar.zst
gsoc2013-evolution-640883f04d9d76a933a2410ef3f100848ad7ddfd.zip
Add column and GdkEvent * parameters to the double click signal.
2000-12-07 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.c, e-table.h: Add column and GdkEvent * parameters to the double click signal. * e-table-header-item: Unref the ETableFullHeader when we're done with it. * e-table-scrolled.c, e-table-scrolled.h: Remove all of the proxies and add a function e_table_scrolled_get_table and a gtk argument "table". svn path=/trunk/; revision=6850
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index c10d964b52..67833f0f6b 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1624,6 +1624,7 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
case GDK_2BUTTON_PRESS: {
double x1, y1;
int col, row;
+ GdkEventButton button;
if (e->button.button == 5 ||
e->button.button == 4)
@@ -1634,8 +1635,12 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1))
return TRUE;
+ button = *(GdkEventButton *)e;
+ button.x = x1;
+ button.y = y1;
+
gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK],
- row);
+ row, col, &button);
break;
}
case GDK_MOTION_NOTIFY: {
@@ -1891,8 +1896,8 @@ eti_class_init (GtkObjectClass *object_class)
GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (ETableItemClass, double_click),
- gtk_marshal_NONE__INT,
- GTK_TYPE_NONE, 1, GTK_TYPE_INT);
+ gtk_marshal_NONE__INT_INT_POINTER,
+ GTK_TYPE_NONE, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
eti_signals [RIGHT_CLICK] =
gtk_signal_new ("right_click",