diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 21:22:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 22:34:12 +0800 |
commit | f267827d67d3fd11478fbf94da9cd6095400a49c (patch) | |
tree | 29bf07f39ab001ea53bdb1bd67c32242e53c0944 /e-util/e-table-specification.h | |
parent | dfc653bb43a6311c04d7881c2d1b1642c081f839 (diff) | |
download | gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar.gz gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar.bz2 gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar.lz gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar.xz gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.tar.zst gsoc2013-evolution-f267827d67d3fd11478fbf94da9cd6095400a49c.zip |
ETableSpecification: Implement GInitable.
e_table_specification_new() now takes a table specification filename and
a GError and parses the file as part of instance creation. If a file or
parse error occurs, e_table_specification_new() returns NULL.
This replaces e_table_specification_load_from_file().
New functions:
e_table_specification_get_filename()
Removed functions:
e_table_specification_load_from_file()
Diffstat (limited to 'e-util/e-table-specification.h')
-rw-r--r-- | e-util/e-table-specification.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-table-specification.h b/e-util/e-table-specification.h index ff8ad062da..d5aa40a324 100644 --- a/e-util/e-table-specification.h +++ b/e-util/e-table-specification.h @@ -82,15 +82,15 @@ struct _ETableSpecificationClass { GType e_table_specification_get_type (void) G_GNUC_CONST; ETableSpecification * - e_table_specification_new (void); + e_table_specification_new (const gchar *filename, + GError **error); +const gchar * e_table_specification_get_filename + (ETableSpecification *specification); GPtrArray * e_table_specification_ref_columns (ETableSpecification *specification); gint e_table_specification_get_column_index (ETableSpecification *specification, ETableColumnSpecification *column_spec); -gboolean e_table_specification_load_from_file - (ETableSpecification *specification, - const gchar *filename); G_END_DECLS |