aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-10-11 18:16:02 +0800
committerChris Lahey <clahey@src.gnome.org>2000-10-11 18:16:02 +0800
commit6eb7de17e89e2d14a7178e27289ef54ac5a6a233 (patch)
treebcfa522cf400c3288d453a44eca97cef1d210ad1 /shell
parentc29099541fa371b15fe83575022243314080b16c (diff)
downloadgsoc2013-evolution-6eb7de17e89e2d14a7178e27289ef54ac5a6a233.tar.gz
gsoc2013-evolution-6eb7de17e89e2d14a7178e27289ef54ac5a6a233.tar.zst
gsoc2013-evolution-6eb7de17e89e2d14a7178e27289ef54ac5a6a233.zip
Changed this to use the built in cells.
2000-10-11 Christopher James Lahey <clahey@helixcode.com> * e-storage-set-view.c: Changed this to use the built in cells. svn path=/trunk/; revision=5844
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog4
-rw-r--r--shell/e-storage-set-view.c20
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,5 +1,9 @@
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
+ * e-storage-set-view.c: Changed this to use the built in cells.
+
+2000-10-11 Christopher James Lahey <clahey@helixcode.com>
+
* e-storage-set-view.c: Adapted this for the new ETable system.
2000-10-09 Michael Meeks <michael@helixcode.com>
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 <gal/e-table/e-cell-tree.h>
#include <gal/e-table/e-cell-text.h>
-#define ETABLE_SPEC "<ETableSpecification no-headers=\"1\" cursor-mode=\"line\"> \
- <ETableColumn model_col=\"0\" _title=\"Folder\" expansion=\"1.0\" minimum_width=\"20\" resizable=\"true\" cell=\"cell_tree\" compare=\"string\"/> \
+#define ETABLE_SPEC "<ETableSpecification no-headers=\"1\" cursor-mode=\"line\" draw-grid=\"true\"> \
+ <ETableColumn model_col=\"0\" _title=\"Folder\" expansion=\"1.0\" minimum_width=\"20\" resizable=\"true\" cell=\"tree-string\" compare=\"string\"/> \
<ETableState> \
<column> 0 </column> \
<grouping></grouping> \
@@ -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);