diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-10-11 16:48:41 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-10-11 16:48:41 +0800 |
commit | abbd11d2aa07bb781026c54d3394eb508c3c279c (patch) | |
tree | 290db34c35c50affdc5c497046e34650025b5c3d /shell | |
parent | dabe67e33ce6691678fa97bd09d0fed5ee9c2b74 (diff) | |
download | gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar.gz gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar.bz2 gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar.lz gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar.xz gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.tar.zst gsoc2013-evolution-abbd11d2aa07bb781026c54d3394eb508c3c279c.zip |
Adapted this for the new ETable system.
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* e-storage-set-view.c: Adapted this for the new ETable system.
svn path=/trunk/; revision=5840
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 4 | ||||
-rw-r--r-- | shell/e-storage-set-view.c | 26 |
2 files changed, 16 insertions, 14 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 666b16225c..273c56b823 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,7 @@ +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> * e-shell-view-menu.c: Change paths in such a way as to require diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 29b8730683..d3a61c9efa 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -39,11 +39,12 @@ #include <gal/e-table/e-cell-tree.h> #include <gal/e-table/e-cell-text.h> -#define ETABLE_SPEC "<ETableSpecification no-header=\"1\"> \ - <columns-shown> \ +#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\"/> \ + <ETableState> \ <column> 0 </column> \ - </columns-shown> \ - <grouping></grouping> \ + <grouping></grouping> \ + </ETableState> \ </ETableSpecification>" @@ -889,8 +890,7 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, EStorageSet *storage_set) { EStorageSetViewPrivate *priv; - ETableCol *ecol; - ETableHeader *e_table_header; + ETableExtras *extras; ECell *cell_left_just; ECell *cell_tree; @@ -916,21 +916,19 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, priv->root_node = e_tree_model_node_insert (priv->etree_model, NULL, -1, "/Root Node"); - e_table_header = e_table_header_new (); 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); - ecol = e_table_col_new (0, "Folder", 80, 20, cell_tree, g_str_compare, TRUE); - e_table_header_add_column (e_table_header, ecol, 0); + 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_header, E_TABLE_MODEL(priv->etree_model), - ETABLE_SPEC); + e_table_construct (E_TABLE (storage_set_view), E_TABLE_MODEL(priv->etree_model), extras, + ETABLE_SPEC, NULL); - gtk_object_set (GTK_OBJECT (storage_set_view), - "cursor_mode", E_TABLE_CURSOR_LINE, - 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); |