diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-27 09:52:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-02 22:34:09 +0800 |
commit | cf33c28a0e0fab775856df4c268c40eb4b67fe8b (patch) | |
tree | 5397fdb689f0f5a12d844f2e487e5f1a485205e3 /e-util/e-table-sort-info.c | |
parent | f8605636c394f9df19b80a8d7084038566a43cfa (diff) | |
download | gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.tar.gz gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.tar.zst gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.zip |
ETableSortInfo: Add a private section.
Diffstat (limited to 'e-util/e-table-sort-info.c')
-rw-r--r-- | e-util/e-table-sort-info.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/e-util/e-table-sort-info.c b/e-util/e-table-sort-info.c index fc75088d9f..526219081b 100644 --- a/e-util/e-table-sort-info.c +++ b/e-util/e-table-sort-info.c @@ -22,6 +22,14 @@ #include "e-xml-utils.h" +#define E_TABLE_SORT_INFO_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_TABLE_SORT_INFO, ETableSortInfoPrivate)) + +struct _ETableSortInfoPrivate { + gint placeholder; +}; + enum { SORT_INFO_CHANGED, GROUP_INFO_CHANGED, @@ -49,6 +57,8 @@ e_table_sort_info_class_init (ETableSortInfoClass *class) { GObjectClass * object_class; + g_type_class_add_private (class, sizeof (ETableSortInfoPrivate)); + object_class = G_OBJECT_CLASS (class); object_class->finalize = table_sort_info_finalize; @@ -74,6 +84,8 @@ e_table_sort_info_class_init (ETableSortInfoClass *class) static void e_table_sort_info_init (ETableSortInfo *sort_info) { + sort_info->priv = E_TABLE_SORT_INFO_GET_PRIVATE (sort_info); + sort_info->can_group = TRUE; } |