[evolution] ETableSortInfo: Add a private section.



commit cf33c28a0e0fab775856df4c268c40eb4b67fe8b
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Jun 26 21:52:34 2013 -0400

    ETableSortInfo: Add a private section.

 .../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(+), 0 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index 303cea2..84a88c5 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 fc75088..5262190 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 583be6b..87f4374 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]