aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-leaf.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-leaf.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-leaf.c')
-rw-r--r--widgets/e-table/e-table-group-leaf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-group-leaf.c b/widgets/e-table/e-table-group-leaf.c
index 50241f9990..29273c4f73 100644
--- a/widgets/e-table/e-table-group-leaf.c
+++ b/widgets/e-table/e-table-group-leaf.c
@@ -198,6 +198,17 @@ etgl_select_row (ETableGroup *etg, gint row)
e_table_item_focus(etgl->item, 0, row);
}
+static int
+etgl_get_selected_view_row (ETableGroup *etg)
+{
+ ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF (etg);
+ int row;
+ gtk_object_get(GTK_OBJECT(etgl->item),
+ "cursor_row", &row,
+ NULL);
+ return row;
+}
+
static void
etgl_unfocus (ETableGroup *etg)
{
@@ -321,6 +332,7 @@ etgl_class_init (GtkObjectClass *object_class)
e_group_class->set_focus = etgl_set_focus;
e_group_class->select_row = etgl_select_row;
e_group_class->unfocus = etgl_unfocus;
+ e_group_class->get_selected_view_row = etgl_get_selected_view_row;
e_group_class->get_focus_column = etgl_get_focus_column;
gtk_object_add_arg_type ("ETableGroupLeaf::drawgrid", GTK_TYPE_BOOL,