diff options
Diffstat (limited to 'widgets/misc/e-image-chooser.c')
-rw-r--r-- | widgets/misc/e-image-chooser.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c index 932d4ebc51..5fe6941d58 100644 --- a/widgets/misc/e-image-chooser.c +++ b/widgets/misc/e-image-chooser.c @@ -32,6 +32,10 @@ #include "e-util/e-util.h" #include "e-util/e-icon-factory.h" +#define E_IMAGE_CHOOSER_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_IMAGE_CHOOSER, EImageChooserPrivate)) + struct _EImageChooserPrivate { GtkWidget *frame; GtkWidget *image; @@ -372,7 +376,7 @@ image_chooser_dispose (GObject *object) { EImageChooserPrivate *priv; - priv = E_IMAGE_CHOOSER (object)->priv; + priv = E_IMAGE_CHOOSER_GET_PRIVATE (object); if (priv->frame != NULL) { g_object_unref (priv->frame); @@ -393,7 +397,7 @@ image_chooser_finalize (GObject *object) { EImageChooserPrivate *priv; - priv = E_IMAGE_CHOOSER (object)->priv; + priv = E_IMAGE_CHOOSER_GET_PRIVATE (object); g_free (priv->image_buf); g_free (priv->icon_name); @@ -442,8 +446,7 @@ e_image_chooser_init (EImageChooser *chooser) GtkWidget *container; GtkWidget *widget; - chooser->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - chooser, E_TYPE_IMAGE_CHOOSER, EImageChooserPrivate); + chooser->priv = E_IMAGE_CHOOSER_GET_PRIVATE (chooser); container = GTK_WIDGET (chooser); |