From c29099541fa371b15fe83575022243314080b16c Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 11 Oct 2000 10:13:43 +0000 Subject: Updated these to the new style ETables. 2000-10-11 Christopher James Lahey * contact-editor/e-contact-editor-categories.c, gui/component/select-names/e-select-names.c, gui/widgets/e-addressbook-view.c: Updated these to the new style ETables. svn path=/trunk/; revision=5843 --- .../contact-editor/e-contact-editor-categories.c | 33 +++++----------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/e-contact-editor-categories.c b/addressbook/gui/contact-editor/e-contact-editor-categories.c index 1845fc65ff..db85466e87 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-categories.c +++ b/addressbook/gui/contact-editor/e-contact-editor-categories.c @@ -26,8 +26,6 @@ #include #include #include -#include -#include #include static void e_contact_editor_categories_init (EContactEditorCategories *card); @@ -223,13 +221,14 @@ e_contact_editor_categories_entry_change (GtkWidget *entry, do_parse_categories(categories); } - -#define INITIAL_SPEC " \ - \ +#define INITIAL_SPEC "\ + \ + \ + \ 0 \ 1 \ - \ - \ + \ + \ " static void @@ -237,10 +236,6 @@ e_contact_editor_categories_init (EContactEditorCategories *categories) { GladeXML *gui; GtkWidget *table; - ECell *cell_left_just; - ECell *cell_checkbox; - ETableHeader *header; - ETableCol *col; GtkWidget *e_table; categories->list_length = 0; @@ -282,21 +277,7 @@ e_contact_editor_categories_init (EContactEditorCategories *categories) e_contact_editor_categories_value_to_string, categories); - header = e_table_header_new(); - - cell_checkbox = e_cell_checkbox_new(); - col = e_table_col_new (0, "", - 0, 20, cell_checkbox, - g_int_compare, TRUE); - e_table_header_add_column (header, col, 0); - - cell_left_just = e_cell_text_new (categories->model, NULL, GTK_JUSTIFY_LEFT); - col = e_table_col_new (1, "Category", - 1.0, 20, cell_left_just, - g_str_compare, TRUE); - e_table_header_add_column (header, col, 1); - - e_table = e_table_scrolled_new (header, categories->model, INITIAL_SPEC); + e_table = e_table_scrolled_new (categories->model, NULL, INITIAL_SPEC, NULL); gtk_object_sink(GTK_OBJECT(categories->model)); -- cgit v1.2.3