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 /calendar/gui/e-day-view-top-item.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 'calendar/gui/e-day-view-top-item.c')
-rw-r--r-- | calendar/gui/e-day-view-top-item.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index d6faa6151c..12b1bc41fa 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -37,10 +37,6 @@ #include "e-calendar-view.h" #include "e-day-view-top-item.h" -#define E_DAY_VIEW_TOP_ITEM_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemPrivate)) - struct _EDayViewTopItemPrivate { /* The parent EDayView widget. */ EDayView *day_view; @@ -523,7 +519,7 @@ day_view_top_item_dispose (GObject *object) { EDayViewTopItemPrivate *priv; - priv = E_DAY_VIEW_TOP_ITEM_GET_PRIVATE (object); + priv = E_DAY_VIEW_TOP_ITEM (object)->priv; if (priv->day_view != NULL) { g_object_unref (priv->day_view); @@ -788,7 +784,7 @@ day_view_top_item_class_init (EDayViewTopItemClass *class) static void day_view_top_item_init (EDayViewTopItem *top_item) { - top_item->priv = E_DAY_VIEW_TOP_ITEM_GET_PRIVATE (top_item); + top_item->priv = G_TYPE_INSTANCE_GET_PRIVATE (top_item, E_TYPE_DAY_VIEW_TOP_ITEM, EDayViewTopItemPrivate); } GType |