aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-signature-preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-signature-preview.c')
-rw-r--r--widgets/misc/e-signature-preview.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/widgets/misc/e-signature-preview.c b/widgets/misc/e-signature-preview.c
index af266dd5b3..ec4370bbc3 100644
--- a/widgets/misc/e-signature-preview.c
+++ b/widgets/misc/e-signature-preview.c
@@ -27,10 +27,6 @@
#include <glib/gstdio.h>
#include "e-util/e-signature-utils.h"
-#define E_SIGNATURE_PREVIEW_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_SIGNATURE_PREVIEW, ESignaturePreviewPrivate))
-
enum {
PROP_0,
PROP_ALLOW_SCRIPTS,
@@ -105,7 +101,7 @@ signature_preview_dispose (GObject *object)
{
ESignaturePreviewPrivate *priv;
- priv = E_SIGNATURE_PREVIEW_GET_PRIVATE (object);
+ priv = E_SIGNATURE_PREVIEW (object)->priv;
if (priv->signature != NULL) {
g_object_unref (priv->signature);
@@ -215,7 +211,7 @@ e_signature_preview_class_init (ESignaturePreviewClass *class)
static void
e_signature_preview_init (ESignaturePreview *preview)
{
- preview->priv = E_SIGNATURE_PREVIEW_GET_PRIVATE (preview);
+ preview->priv = G_TYPE_INSTANCE_GET_PRIVATE (preview, E_TYPE_SIGNATURE_PREVIEW, ESignaturePreviewPrivate);
}
GtkWidget *