diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-04 11:47:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-05 09:22:21 +0800 |
commit | 5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a (patch) | |
tree | 92b05ad7116690bf2da53a0fa6ba813fcbea50c7 /widgets/table/e-table-extras.c | |
parent | 69945127d8a7933512bb14eb20ff85354704b5cc (diff) | |
download | gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.tar.gz gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.tar.zst gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/table/e-table-extras.c')
-rw-r--r-- | widgets/table/e-table-extras.c | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/widgets/table/e-table-extras.c b/widgets/table/e-table-extras.c index 9d9b7ee65c..a02ac45e42 100644 --- a/widgets/table/e-table-extras.c +++ b/widgets/table/e-table-extras.c @@ -163,6 +163,8 @@ safe_unref (gpointer object) static void ete_init (ETableExtras *extras) { + ECell *cell; + extras->priv = E_TABLE_EXTRAS_GET_PRIVATE (extras); extras->priv->cells = g_hash_table_new_full ( @@ -193,13 +195,27 @@ ete_init (ETableExtras *extras) e_table_extras_add_search(extras, "string", e_string_search); - e_table_extras_add_cell(extras, "checkbox", e_cell_checkbox_new()); - e_table_extras_add_cell(extras, "date", e_cell_date_new (NULL, GTK_JUSTIFY_LEFT)); - e_table_extras_add_cell(extras, "number", e_cell_number_new (NULL, GTK_JUSTIFY_RIGHT)); - e_table_extras_add_cell(extras, "pixbuf", e_cell_pixbuf_new ()); - e_table_extras_add_cell(extras, "size", e_cell_size_new (NULL, GTK_JUSTIFY_RIGHT)); - e_table_extras_add_cell(extras, "string", e_cell_text_new (NULL, GTK_JUSTIFY_LEFT)); - e_table_extras_add_cell(extras, "tree-string", e_cell_tree_new (NULL, NULL, TRUE, e_cell_text_new (NULL, GTK_JUSTIFY_LEFT))); + cell = e_cell_checkbox_new (); + e_table_extras_add_cell(extras, "checkbox", cell); + + cell = e_cell_date_new (NULL, GTK_JUSTIFY_LEFT); + e_table_extras_add_cell(extras, "date", cell); + + cell = e_cell_number_new (NULL, GTK_JUSTIFY_RIGHT); + e_table_extras_add_cell(extras, "number", cell); + + cell = e_cell_pixbuf_new (); + e_table_extras_add_cell(extras, "pixbuf", cell); + + cell = e_cell_size_new (NULL, GTK_JUSTIFY_RIGHT); + e_table_extras_add_cell(extras, "size", cell); + + cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT); + e_table_extras_add_cell(extras, "string", cell); + + cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT); + cell = e_cell_tree_new (NULL, NULL, TRUE, cell); + e_table_extras_add_cell(extras, "tree-string", cell); } ETableExtras * |