From 6eb7de17e89e2d14a7178e27289ef54ac5a6a233 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 11 Oct 2000 10:16:02 +0000 Subject: Changed this to use the built in cells. 2000-10-11 Christopher James Lahey * e-storage-set-view.c: Changed this to use the built in cells. svn path=/trunk/; revision=5844 --- shell/ChangeLog | 4 ++++ shell/e-storage-set-view.c | 20 +++----------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 273c56b823..892942a365 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,7 @@ +2000-10-11 Christopher James Lahey + + * e-storage-set-view.c: Changed this to use the built in cells. + 2000-10-11 Christopher James Lahey * e-storage-set-view.c: Adapted this for the new ETable system. diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index d3a61c9efa..ae0a5858d8 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -39,8 +39,8 @@ #include #include -#define ETABLE_SPEC " \ - \ +#define ETABLE_SPEC " \ + \ \ 0 \ \ @@ -890,9 +890,6 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, EStorageSet *storage_set) { EStorageSetViewPrivate *priv; - ETableExtras *extras; - ECell *cell_left_just; - ECell *cell_tree; g_return_if_fail (storage_set_view != NULL); g_return_if_fail (E_IS_STORAGE_SET_VIEW (storage_set_view)); @@ -916,20 +913,9 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, priv->root_node = e_tree_model_node_insert (priv->etree_model, NULL, -1, "/Root Node"); - cell_left_just = e_cell_text_new (E_TABLE_MODEL (priv->etree_model), NULL, GTK_JUSTIFY_LEFT); - cell_tree = e_cell_tree_new (E_TABLE_MODEL (priv->etree_model), - NULL, NULL, /* let the tree default its own +'s and -'s */ - TRUE, cell_left_just); - - extras = e_table_extras_new(); - e_table_extras_add_cell(extras, "cell_left_just", cell_left_just); - e_table_extras_add_cell(extras, "cell_tree", cell_tree); - - e_table_construct (E_TABLE (storage_set_view), E_TABLE_MODEL(priv->etree_model), extras, + e_table_construct (E_TABLE (storage_set_view), E_TABLE_MODEL(priv->etree_model), NULL, ETABLE_SPEC, NULL); - gtk_object_sink (GTK_OBJECT (extras)); - e_table_drag_source_set (E_TABLE (storage_set_view), GDK_BUTTON1_MASK, drag_types, num_drag_types, GDK_ACTION_MOVE); -- cgit