aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-account-manager.c
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 /widgets/misc/e-account-manager.c
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 'widgets/misc/e-account-manager.c')
-rw-r--r--widgets/misc/e-account-manager.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/widgets/misc/e-account-manager.c b/widgets/misc/e-account-manager.c
index d8415f8d3a..e4ab1e798d 100644
--- a/widgets/misc/e-account-manager.c
+++ b/widgets/misc/e-account-manager.c
@@ -25,10 +25,6 @@
#include <gdk/gdkkeysyms.h>
#include "e-account-tree-view.h"
-#define E_ACCOUNT_MANAGER_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE \
- ((obj), E_TYPE_ACCOUNT_MANAGER, EAccountManagerPrivate))
-
struct _EAccountManagerPrivate {
EAccountList *account_list;
@@ -168,7 +164,7 @@ account_manager_dispose (GObject *object)
{
EAccountManagerPrivate *priv;
- priv = E_ACCOUNT_MANAGER_GET_PRIVATE (object);
+ priv = E_ACCOUNT_MANAGER (object)->priv;
if (priv->account_list != NULL) {
g_object_unref (priv->account_list);
@@ -260,7 +256,7 @@ e_account_manager_init (EAccountManager *manager)
GtkWidget *container;
GtkWidget *widget;
- manager->priv = E_ACCOUNT_MANAGER_GET_PRIVATE (manager);
+ manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager, E_TYPE_ACCOUNT_MANAGER, EAccountManagerPrivate);
gtk_table_resize (GTK_TABLE (manager), 1, 2);
gtk_table_set_col_spacings (GTK_TABLE (manager), 6);