From 862d1f25dea4fde774aca9b8e849f22b2e0b9d93 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 19 Aug 2000 23:32:50 +0000 Subject: Made background colors alternate. 2000-08-19 Christopher James Lahey * e-cell-text.c: Made background colors alternate. * e-table-click-to-add.c: Made tabbing off the right edge of the click to add commit the new values. * e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-group.h, e-table-sorted-variable.c, e-table-subset-variable.c, e-table-subset-variable.h: Added a decrement method. Made the add and remove methods not automatically increment and decrement. * e-table-item.c: Fixed some view vs model issues for both rows and columns. * e-table-model.c: Added debugging code. Removed automatic signalling of changes by the ETableModel set_value_at function (the model should send these signals itself.) * e-table.c: Added increment and decrement calls when a row is removed or added from the source model. svn path=/trunk/; revision=4881 --- widgets/e-table/e-table-group-container.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'widgets/e-table/e-table-group-container.c') diff --git a/widgets/e-table/e-table-group-container.c b/widgets/e-table/e-table-group-container.c index dbf492d091..3a68bc044b 100644 --- a/widgets/e-table/e-table-group-container.c +++ b/widgets/e-table/e-table-group-container.c @@ -479,6 +479,17 @@ etgc_increment (ETableGroup *etg, gint position, gint amount) position, amount); } +static void +etgc_decrement (ETableGroup *etg, gint position, gint amount) +{ + ETableGroupContainer *etgc = E_TABLE_GROUP_CONTAINER(etg); + GList *list = etgc->children; + + for (list = etgc->children ; list; list = g_list_next (list)) + e_table_group_decrement (((ETableGroupContainerChildNode *)list->data)->child, + position, amount); +} + static void etgc_set_cursor_row (ETableGroup *etg, gint row) { @@ -703,6 +714,7 @@ etgc_class_init (GtkObjectClass *object_class) e_group_class->add_all = etgc_add_all; e_group_class->remove = etgc_remove; e_group_class->increment = etgc_increment; + e_group_class->decrement = etgc_decrement; e_group_class->row_count = etgc_row_count; e_group_class->set_focus = etgc_set_focus; e_group_class->set_cursor_row = etgc_set_cursor_row; -- cgit v1.2.3