aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
committerMilan Crha <mcrha@redhat.com>2011-02-25 23:20:41 +0800
commit1301cf02efdacd20fb5ce3e2554ae15b8f146e8a (patch)
tree8d5f3985a82ec7d330af27ee0a29a79a2f0ecfa3 /em-format
parent1a4be6c521d674c4a60e54203521e2721b81b921 (diff)
downloadgsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.gz
gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.tar.zst
gsoc2013-evolution-1301cf02efdacd20fb5ce3e2554ae15b8f146e8a.zip
Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly
Diffstat (limited to 'em-format')
-rw-r--r--em-format/em-format.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 27f3d1bfb6..23573331c0 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -36,10 +36,6 @@
#include "shell/e-shell.h"
#include "shell/e-shell-settings.h"
-#define EM_FORMAT_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), EM_TYPE_FORMAT, EMFormatPrivate))
-
#define d(x)
typedef struct _EMFormatCache EMFormatCache;
@@ -358,7 +354,7 @@ emf_init (EMFormat *emf)
EShell *shell;
EShellSettings *shell_settings;
- emf->priv = EM_FORMAT_GET_PRIVATE (emf);
+ emf->priv = G_TYPE_INSTANCE_GET_PRIVATE (emf, EM_TYPE_FORMAT, EMFormatPrivate);
emf->inline_table = g_hash_table_new_full (
g_str_hash, g_str_equal,