From c003c99a75587ba39a45d164272760c33f9666b5 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 --- calendar/gui/e-task-table.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'calendar/gui/e-task-table.c') diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c index 1af19e0ce6..8fbd4d986c 100644 --- a/calendar/gui/e-task-table.c +++ b/calendar/gui/e-task-table.c @@ -63,10 +63,6 @@ #include #include "misc.h" -#define E_TASK_TABLE_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_TASK_TABLE, ETaskTablePrivate)) - struct _ETaskTablePrivate { gpointer shell_view; /* weak pointer */ ECalModel *model; @@ -375,7 +371,7 @@ task_table_dispose (GObject *object) { ETaskTablePrivate *priv; - priv = E_TASK_TABLE_GET_PRIVATE (object); + priv = E_TASK_TABLE (object)->priv; if (priv->shell_view != NULL) { g_object_remove_weak_pointer ( @@ -1431,7 +1427,7 @@ task_table_init (ETaskTable *task_table) { GtkTargetList *target_list; - task_table->priv = E_TASK_TABLE_GET_PRIVATE (task_table); + task_table->priv = G_TYPE_INSTANCE_GET_PRIVATE (task_table, E_TYPE_TASK_TABLE, ETaskTablePrivate); target_list = gtk_target_list_new (NULL, 0); e_target_list_add_calendar_targets (target_list, 0); -- cgit