From cf33c28a0e0fab775856df4c268c40eb4b67fe8b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 26 Jun 2013 21:52:34 -0400 Subject: ETableSortInfo: Add a private section. --- doc/reference/evolution-util/evolution-util-sections.txt | 2 ++ e-util/e-table-sort-info.c | 12 ++++++++++++ e-util/e-table-sort-info.h | 2 ++ 3 files changed, 16 insertions(+) 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 + +ETableSortInfoPrivate
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; -- cgit v1.2.3