diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-25 23:20:41 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:39 +0800 |
commit | c003c99a75587ba39a45d164272760c33f9666b5 (patch) | |
tree | ad6d0583fa9e8f078fb1c118f994371d2f1f79d8 /e-util/e-extension.c | |
parent | f55aaa5e00a40a137f403a8d5c68dd508059b0b4 (diff) | |
download | gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.gz gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.zst gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.zip |
Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly
Diffstat (limited to 'e-util/e-extension.c')
-rw-r--r-- | e-util/e-extension.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/e-util/e-extension.c b/e-util/e-extension.c index d7d95c9496..9c61110911 100644 --- a/e-util/e-extension.c +++ b/e-util/e-extension.c @@ -41,10 +41,6 @@ #include "e-extension.h" -#define E_EXTENSION_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_EXTENSION, EExtensionPrivate)) - struct _EExtensionPrivate { gpointer extensible; /* weak pointer */ }; @@ -126,7 +122,7 @@ extension_dispose (GObject *object) { EExtensionPrivate *priv; - priv = E_EXTENSION_GET_PRIVATE (object); + priv = E_EXTENSION (object)->priv; if (priv->extensible != NULL) { g_object_remove_weak_pointer ( @@ -165,7 +161,7 @@ e_extension_class_init (EExtensionClass *class) static void e_extension_init (EExtension *extension) { - extension->priv = E_EXTENSION_GET_PRIVATE (extension); + extension->priv = G_TYPE_INSTANCE_GET_PRIVATE (extension, E_TYPE_EXTENSION, EExtensionPrivate); } /** |