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/dialogs/event-page.c | |
parent | f55aaa5e00a40a137f403a8d5c68dd508059b0b4 (diff) | |
download | gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.gz gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.bz2 gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.lz gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.xz gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.tar.zst gsoc2013-evolution-c003c99a75587ba39a45d164272760c33f9666b5.zip |
Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 7d7e1d4859..e4459a4779 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -58,10 +58,6 @@ #include "event-page.h" #include "e-send-options-utils.h" -#define EVENT_PAGE_GET_PRIVATE(obj) \ - (G_TYPE_INSTANCE_GET_PRIVATE \ - ((obj), TYPE_EVENT_PAGE, EventPagePrivate)) - enum { ALARM_NONE, ALARM_15_MINUTES, @@ -215,7 +211,7 @@ event_page_dispose (GObject *object) { EventPagePrivate *priv; - priv = EVENT_PAGE_GET_PRIVATE (object); + priv = EVENT_PAGE (object)->priv; if (priv->comp != NULL) { g_object_unref (priv->comp); @@ -251,7 +247,7 @@ event_page_finalize (GObject *object) { EventPagePrivate *priv; - priv = EVENT_PAGE_GET_PRIVATE (object); + priv = EVENT_PAGE (object)->priv; g_list_foreach (priv->address_strings, (GFunc) g_free, NULL); g_list_free (priv->address_strings); @@ -293,7 +289,7 @@ event_page_class_init (EventPageClass *class) static void event_page_init (EventPage *epage) { - epage->priv = EVENT_PAGE_GET_PRIVATE (epage); + epage->priv = G_TYPE_INSTANCE_GET_PRIVATE (epage, TYPE_EVENT_PAGE, EventPagePrivate); epage->priv->deleted_attendees = g_ptr_array_new (); epage->priv->alarm_interval = -1; epage->priv->alarm_map = alarm_map_with_user_time; @@ -338,7 +334,7 @@ event_page_get_widget (CompEditorPage *page) { EventPagePrivate *priv; - priv = EVENT_PAGE_GET_PRIVATE (page); + priv = EVENT_PAGE (page)->priv; return priv->main; } @@ -349,7 +345,7 @@ event_page_focus_main_widget (CompEditorPage *page) { EventPagePrivate *priv; - priv = EVENT_PAGE_GET_PRIVATE (page); + priv = EVENT_PAGE (page)->priv; gtk_widget_grab_focus (priv->summary); } |