aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-signature-tree-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-signature-tree-view.c')
-rw-r--r--widgets/misc/e-signature-tree-view.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/misc/e-signature-tree-view.c b/widgets/misc/e-signature-tree-view.c
index 9d27ec1929..0c8cd626f9 100644
--- a/widgets/misc/e-signature-tree-view.c
+++ b/widgets/misc/e-signature-tree-view.c
@@ -21,10 +21,6 @@
#include "e-signature-tree-view.h"
-#define E_SIGNATURE_TREE_VIEW_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_SIGNATURE_TREE_VIEW, ESignatureTreeViewPrivate))
-
enum {
COLUMN_STRING,
COLUMN_SIGNATURE
@@ -215,7 +211,7 @@ signature_tree_view_dispose (GObject *object)
{
ESignatureTreeViewPrivate *priv;
- priv = E_SIGNATURE_TREE_VIEW_GET_PRIVATE (object);
+ priv = E_SIGNATURE_TREE_VIEW (object)->priv;
if (priv->signature_list != NULL) {
g_signal_handlers_disconnect_by_func (
@@ -236,7 +232,7 @@ signature_tree_view_finalize (GObject *object)
{
ESignatureTreeViewPrivate *priv;
- priv = E_SIGNATURE_TREE_VIEW_GET_PRIVATE (object);
+ priv = E_SIGNATURE_TREE_VIEW (object)->priv;
g_hash_table_destroy (priv->index);
@@ -300,7 +296,7 @@ e_signature_tree_view_init (ESignatureTreeView *tree_view)
(GDestroyNotify) g_object_unref,
(GDestroyNotify) gtk_tree_row_reference_free);
- tree_view->priv = E_SIGNATURE_TREE_VIEW_GET_PRIVATE (tree_view);
+ tree_view->priv = G_TYPE_INSTANCE_GET_PRIVATE (tree_view, E_TYPE_SIGNATURE_TREE_VIEW, ESignatureTreeViewPrivate);
tree_view->priv->index = index;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
@@ -336,7 +332,7 @@ e_signature_tree_view_set_signature_list (ESignatureTreeView *tree_view,
if (signature_list != NULL)
g_return_if_fail (E_IS_SIGNATURE_LIST (signature_list));
- priv = E_SIGNATURE_TREE_VIEW_GET_PRIVATE (tree_view);
+ priv = tree_view->priv;
if (priv->signature_list != NULL) {
g_signal_handlers_disconnect_by_func (