From 1301cf02efdacd20fb5ce3e2554ae15b8f146e8a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 25 Feb 2011 16:20:41 +0100 Subject: Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly --- widgets/misc/e-picture-gallery.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'widgets/misc/e-picture-gallery.c') diff --git a/widgets/misc/e-picture-gallery.c b/widgets/misc/e-picture-gallery.c index 084a6f49a0..dcbbe61c09 100644 --- a/widgets/misc/e-picture-gallery.c +++ b/widgets/misc/e-picture-gallery.c @@ -23,10 +23,6 @@ #include "e-picture-gallery.h" -#define E_PICTURE_GALLERY_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_PICTURE_GALLERY, EPictureGalleryPrivate)) - struct _EPictureGalleryPrivate { gboolean initialized; gchar *path; @@ -406,7 +402,7 @@ e_picture_gallery_class_init (EPictureGalleryClass *class) static void e_picture_gallery_init (EPictureGallery *gallery) { - gallery->priv = E_PICTURE_GALLERY_GET_PRIVATE (gallery); + gallery->priv = G_TYPE_INSTANCE_GET_PRIVATE (gallery, E_TYPE_PICTURE_GALLERY, EPictureGalleryPrivate); gallery->priv->initialized = FALSE; gallery->priv->monitor = NULL; picture_gallery_set_path (gallery, NULL); -- cgit v1.2.3