diff options
Diffstat (limited to 'widgets/table/e-tree-sorted.c')
-rw-r--r-- | widgets/table/e-tree-sorted.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c index 4d95fcc74b..eee9414d2a 100644 --- a/widgets/table/e-tree-sorted.c +++ b/widgets/table/e-tree-sorted.c @@ -50,6 +50,10 @@ #define d(x) +#define E_TREE_SORTED_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_TREE_SORTED, ETreeSortedPrivate)) + G_DEFINE_TYPE (ETreeSorted, e_tree_sorted, E_TYPE_TREE_MODEL) enum { @@ -600,7 +604,7 @@ ets_dispose (GObject *object) { ETreeSortedPrivate *priv; - priv = E_TREE_SORTED (object)->priv; + priv = E_TREE_SORTED_GET_PRIVATE (object); if (priv->source) { g_signal_handler_disconnect ( @@ -666,7 +670,7 @@ ets_finalize (GObject *object) { ETreeSortedPrivate *priv; - priv = E_TREE_SORTED (object)->priv; + priv = E_TREE_SORTED_GET_PRIVATE (object); if (priv->root) free_path (priv->root); @@ -1267,8 +1271,7 @@ e_tree_sorted_class_init (ETreeSortedClass *class) static void e_tree_sorted_init (ETreeSorted *ets) { - ets->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - ets, E_TYPE_TREE_SORTED, ETreeSortedPrivate); + ets->priv = E_TREE_SORTED_GET_PRIVATE (ets); } /** |