diff options
author | Miguel de Icaza <miguel@gnu.org> | 1999-12-03 16:02:36 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-12-03 16:02:36 +0800 |
commit | 50006218b6fce73920132f43569f410e6d6c6ae4 (patch) | |
tree | 7fd9b0947b1393b157d6e7217d4819b78806a638 /widgets/test-check.c | |
parent | 2e132a09abe8303d10d25b80d1fe23e3b18c6a62 (diff) | |
download | gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.gz gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.bz2 gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.lz gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.xz gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.tar.zst gsoc2013-evolution-50006218b6fce73920132f43569f410e6d6c6ae4.zip |
fixed api.
1999-12-02 Miguel de Icaza <miguel@gnu.org>
* e-table-header.c (e_table_header_index): fixed api.
1999-12-01 Miguel de Icaza <miguel@gnu.org>
* test-cols.c (multi_cols_test): Update to simplified API.
* test-check.c (check_test): ditto
* test-table.c (table_browser_test): ditto
* e-table-simple.c (e_table_simple_class_init): Kill column_name method.
* e-table-model.h: Kill column_name method.
* e-table-col.c (e_table_col_new): Instead of using a column name,
use a column index.
svn path=/trunk/; revision=1459
Diffstat (limited to 'widgets/test-check.c')
-rw-r--r-- | widgets/test-check.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/widgets/test-check.c b/widgets/test-check.c index 4573580562..d0b10d7f32 100644 --- a/widgets/test-check.c +++ b/widgets/test-check.c @@ -36,17 +36,6 @@ col_count (ETableModel *etc, void *data) return 2; } -static const char * -col_name (ETableModel *etc, int col, void *data) -{ - g_assert (col < 2); - - if (col == 0) - return "flag"; - else - return "text"; -} - static int row_count (ETableModel *etc, void *data) { @@ -107,7 +96,7 @@ check_test (void) gtk_widget_push_colormap (gdk_rgb_get_cmap ()); e_table_model = e_table_simple_new ( - col_count, col_name, row_count, value_at, + col_count, row_count, value_at, set_value_at, is_cell_editable, NULL); /* @@ -118,10 +107,10 @@ check_test (void) cell_left_just = e_cell_text_new (e_table_model, NULL, GTK_JUSTIFY_LEFT); cell_image_check = e_cell_checkbox_new (e_table_model); - col_0 = e_table_col_new ("id", "", 18, 18, cell_image_check, g_int_equal, TRUE); + col_0 = e_table_col_new (0, "", 18, 18, cell_image_check, g_int_equal, TRUE); e_table_header_add_column (e_table_header, col_0, 0); - col_1 = e_table_col_new ("item", "Item Name", 180, 20, cell_left_just, g_str_equal, TRUE); + col_1 = e_table_col_new (1, "Item Name", 180, 20, cell_left_just, g_str_equal, TRUE); e_table_header_add_column (e_table_header, col_1, 1); /* |