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 | |
parent | f8605636c394f9df19b80a8d7084038566a43cfa (diff) | |
download | gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.tar.gz gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.tar.zst gsoc2013-evolution-cf33c28a0e0fab775856df4c268c40eb4b67fe8b.zip |
ETableSortInfo: Add a private section.
-rw-r--r-- | doc/reference/evolution-util/evolution-util-sections.txt | 2 | ||||
-rw-r--r-- | e-util/e-table-sort-info.c | 12 | ||||
-rw-r--r-- | e-util/e-table-sort-info.h | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt index 303cea2bd3..84a88c5a0f 100644 --- a/doc/reference/evolution-util/evolution-util-sections.txt +++ b/doc/reference/evolution-util/evolution-util-sections.txt @@ -3892,6 +3892,8 @@ E_IS_TABLE_SORT_INFO_CLASS E_TABLE_SORT_INFO_GET_CLASS ETableSortInfoClass e_table_sort_info_get_type +<SUBSECTION Private> +ETableSortInfoPrivate </SECTION> <SECTION> 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; } diff --git a/e-util/e-table-sort-info.h b/e-util/e-table-sort-info.h index 583be6b6dc..87f43748ee 100644 --- a/e-util/e-table-sort-info.h +++ b/e-util/e-table-sort-info.h @@ -51,6 +51,7 @@ typedef struct _ETableSortColumn ETableSortColumn; typedef struct _ETableSortInfo ETableSortInfo; typedef struct _ETableSortInfoClass ETableSortInfoClass; +typedef struct _ETableSortInfoPrivate ETableSortInfoPrivate; struct _ETableSortColumn { guint column : 31; @@ -59,6 +60,7 @@ struct _ETableSortColumn { struct _ETableSortInfo { GObject parent; + ETableSortInfoPrivate *priv; gint group_count; ETableSortColumn *groupings; |