aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-06 13:50:12 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-06 13:50:12 +0800
commit06978bc7368680efabec6a2cde14c74ca5201d04 (patch)
tree9b01fb6ea232dbb144e7ae5687a004c98bf1272b /widgets/e-table/e-table-group.c
parentce74cc7bb1d1a3f27d93dfa2842a9f13e461714f (diff)
downloadgsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.gz
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.bz2
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.lz
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.xz
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.tar.zst
gsoc2013-evolution-06978bc7368680efabec6a2cde14c74ca5201d04.zip
Added a right click signal.
2000-06-06 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, e-table.c, e-table.h: Added a right click signal. * e-table-sorted-variable.c: Fixed a buffer overrun. svn path=/trunk/; revision=3437
Diffstat (limited to 'widgets/e-table/e-table-group.c')
-rw-r--r--widgets/e-table/e-table-group.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group.c b/widgets/e-table/e-table-group.c
index 9c873e63f9..987636ed6b 100644
--- a/widgets/e-table/e-table-group.c
+++ b/widgets/e-table/e-table-group.c
@@ -31,6 +31,7 @@ enum {
ROW_SELECTION,
CURSOR_CHANGE,
DOUBLE_CLICK,
+ RIGHT_CLICK,
KEY_PRESS,
LAST_SIGNAL
};
@@ -273,6 +274,21 @@ e_table_group_double_click (ETableGroup *e_table_group, gint row)
}
gint
+e_table_group_right_click (ETableGroup *e_table_group, gint row, gint col, GdkEvent *event)
+{
+ gint return_val = 0;
+
+ g_return_val_if_fail (e_table_group != NULL, 0);
+ g_return_val_if_fail (E_IS_TABLE_GROUP (e_table_group), 0);
+
+ gtk_signal_emit (GTK_OBJECT (e_table_group),
+ etg_signals [RIGHT_CLICK],
+ row, col, event, &return_val);
+
+ return return_val;
+}
+
+gint
e_table_group_key_press (ETableGroup *e_table_group, gint row, gint col, GdkEvent *event)
{
gint return_val = 0;
@@ -338,6 +354,7 @@ etg_class_init (GtkObjectClass *object_class)
klass->row_selection = NULL;
klass->cursor_change = NULL;
klass->double_click = NULL;
+ klass->right_click = NULL;
klass->key_press = NULL;
klass->add = NULL;
@@ -379,6 +396,14 @@ etg_class_init (GtkObjectClass *object_class)
gtk_marshal_NONE__INT,
GTK_TYPE_NONE, 1, GTK_TYPE_INT);
+ etg_signals [RIGHT_CLICK] =
+ gtk_signal_new ("right_click",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (ETableGroupClass, right_click),
+ e_marshal_INT__INT_INT_POINTER,
+ GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+
etg_signals [KEY_PRESS] =
gtk_signal_new ("key_press",
GTK_RUN_LAST,