diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-10-09 20:24:54 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-10-09 20:24:54 +0800 |
commit | 3012f7b1f28abda4cb15c50d061af165889bc08b (patch) | |
tree | 696b48556a677f51aadfb517bc89c3ddf32d83f3 /widgets/table/e-table-scrolled.c | |
parent | a2821bc528a4968d67a8e587ec31d6d69abcfbc6 (diff) | |
download | gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar.gz gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar.bz2 gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar.lz gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar.xz gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.tar.zst gsoc2013-evolution-3012f7b1f28abda4cb15c50d061af165889bc08b.zip |
Removed the assertion that there must be at least 1 column. No way to
2000-10-06 Not Zed <NotZed@HelixCode.com>
* e-table-item.c (eti_header_structure_changed): Removed the
assertion that there must be at least 1 column. No way to remove
all columns otherwise (which the header allows).
* e-table.c (et_xml_config_header): Reconfigure header based on
xml nodes for header.
(et_real_set_specification): Just configure the header only, dont
try to recreate everything.
2000-10-05 Not Zed <NotZed@HelixCode.com>
* e-table-scrolled.c (e_table_scrolled_set_specification): Set the
spec on a scrolled etable.
(e_table_scrolled_load_specification): Likewise for load.
* e-table.c (et_real_set_specification): Allow you to set the
specification after the widget was created.
(et_real_construct): Changed to use et_real_set_specification to
set the spec.
(e_table_load_specification): New frunction, load the
speficication from a specific file.
(e_table_set_specification): NEw function to set the specification
from a string.
svn path=/trunk/; revision=5795
Diffstat (limited to 'widgets/table/e-table-scrolled.c')
-rw-r--r-- | widgets/table/e-table-scrolled.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/widgets/table/e-table-scrolled.c b/widgets/table/e-table-scrolled.c index 50cb01a440..16a99bbcb0 100644 --- a/widgets/table/e-table-scrolled.c +++ b/widgets/table/e-table-scrolled.c @@ -216,6 +216,26 @@ e_table_scrolled_save_specification (ETableScrolled *ets, gchar *filename) e_table_save_specification(ets->table, filename); } +int +e_table_scrolled_set_specification(ETableScrolled *ets, const char *spec) +{ + g_return_val_if_fail(ets != NULL, -1); + g_return_val_if_fail(E_IS_TABLE_SCROLLED(ets), -1); + g_return_val_if_fail(spec != NULL, -1); + + return e_table_set_specification(ets->table, spec); +} + +int +e_table_scrolled_load_specification(ETableScrolled *ets, gchar *filename) +{ + g_return_val_if_fail(ets != NULL, -1); + g_return_val_if_fail(E_IS_TABLE_SCROLLED(ets), -1); + g_return_val_if_fail(filename != NULL, -1); + + return e_table_load_specification(ets->table, filename); +} + void e_table_scrolled_set_cursor_row (ETableScrolled *ets, int row) { |