aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-02 08:18:00 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-02 08:18:00 +0800
commit0a898d1c96145bcc37fef5dad685f8c47bd98189 (patch)
tree8c31740349faf59f9fe4d6736171798bc350f036 /widgets/e-table/e-table-group.c
parentf4eed74cbc66265957f938f13f1baa15e76c421e (diff)
downloadgsoc2013-evolution-0a898d1c96145bcc37fef5dad685f8c47bd98189.tar.gz
gsoc2013-evolution-0a898d1c96145bcc37fef5dad685f8c47bd98189.tar.zst
gsoc2013-evolution-0a898d1c96145bcc37fef5dad685f8c47bd98189.zip
Added e_table_get_selected_view_row.
2000-06-01 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: Added e_table_get_selected_view_row. svn path=/trunk/; revision=3351
Diffstat (limited to 'widgets/e-table/e-table-group.c')
-rw-r--r--widgets/e-table/e-table-group.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/widgets/e-table/e-table-group.c b/widgets/e-table/e-table-group.c
index 4258640a97..2e7f94bb1f 100644
--- a/widgets/e-table/e-table-group.c
+++ b/widgets/e-table/e-table-group.c
@@ -180,6 +180,18 @@ e_table_group_select_row (ETableGroup *etg,
ETG_CLASS (etg)->select_row (etg, row);
}
+int
+e_table_group_get_selected_view_row (ETableGroup *etg)
+{
+ g_return_val_if_fail (etg != NULL, -1);
+ g_return_val_if_fail (E_IS_TABLE_GROUP (etg), -1);
+
+ if (ETG_CLASS (etg)->get_selected_view_row)
+ return ETG_CLASS (etg)->get_selected_view_row (etg);
+ else
+ return -1;
+}
+
void
e_table_group_unfocus (ETableGroup *etg)
{
@@ -314,11 +326,12 @@ etg_class_init (GtkObjectClass *object_class)
klass->add = NULL;
klass->add_all = NULL;
klass->remove = NULL;
- klass->get_count = NULL;
- klass->row_count = NULL;
- klass->increment = NULL;
- klass->set_focus = NULL;
+ klass->get_count = NULL;
+ klass->row_count = NULL;
+ klass->increment = NULL;
+ klass->set_focus = NULL;
klass->select_row = NULL;
+ klass->get_selected_view_row = NULL;
klass->unfocus = NULL;
klass->get_focus = etg_get_focus;
klass->get_ecol = NULL;