diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-29 22:44:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-29 23:22:28 +0800 |
commit | 4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9 (patch) | |
tree | ce1154c5d7487fbd566c5b68df90fb8259b4604e /shell/es-event.c | |
parent | e6c42ecc596fb16247e8d1d591a5d244a61d0e24 (diff) | |
download | gsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.tar.gz gsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.tar.zst gsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'shell/es-event.c')
-rw-r--r-- | shell/es-event.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/shell/es-event.c b/shell/es-event.c index c647827586..71381c1cfd 100644 --- a/shell/es-event.c +++ b/shell/es-event.c @@ -36,19 +36,19 @@ static GObjectClass *eme_parent; static ESEvent *es_event; static void -eme_init(GObject *o) +eme_init (GObject *o) { /*ESEvent *eme = (ESEvent *)o; */ } static void -eme_finalise(GObject *o) +eme_finalise (GObject *o) { - ((GObjectClass *)eme_parent)->finalize(o); + ((GObjectClass *)eme_parent)->finalize (o); } static void -eme_target_free(EEvent *ep, EEventTarget *t) +eme_target_free (EEvent *ep, EEventTarget *t) { switch (t->type) { case ES_EVENT_TARGET_STATE: { @@ -58,31 +58,31 @@ eme_target_free(EEvent *ep, EEventTarget *t) break; } } - ((EEventClass *)eme_parent)->target_free(ep, t); + ((EEventClass *)eme_parent)->target_free (ep, t); } static void -eme_class_init(GObjectClass *klass) +eme_class_init (GObjectClass *klass) { klass->finalize = eme_finalise; ((EEventClass *)klass)->target_free = eme_target_free; } GType -es_event_get_type(void) +es_event_get_type (void) { static GType type = 0; if (type == 0) { static const GTypeInfo info = { - sizeof(ESEventClass), + sizeof (ESEventClass), NULL, NULL, (GClassInitFunc)eme_class_init, NULL, NULL, - sizeof(ESEvent), 0, + sizeof (ESEvent), 0, (GInstanceInitFunc)eme_init }; - eme_parent = g_type_class_ref(e_event_get_type()); + eme_parent = g_type_class_ref (e_event_get_type ()); type = g_type_register_static(e_event_get_type(), "ESEvent", &info, 0); } @@ -96,10 +96,10 @@ es_event_get_type(void) * * Return: the shell event handler **/ -ESEvent *es_event_peek(void) +ESEvent *es_event_peek (void) { if (es_event == NULL) { - es_event = g_object_new(es_event_get_type(), NULL); + es_event = g_object_new (es_event_get_type (), NULL); /** @HookPoint: Shell Events Hookpoint * Id: org.gnome.evolution.shell.events * @@ -120,9 +120,9 @@ es_event_target_new (ESEvent *eme) } ESEventTargetState * -es_event_target_new_state(ESEvent *eme, gint state) +es_event_target_new_state (ESEvent *eme, gint state) { - ESEventTargetState *t = e_event_target_new(&eme->event, ES_EVENT_TARGET_STATE, sizeof(*t)); + ESEventTargetState *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_STATE, sizeof (*t)); guint32 mask = ~0; t->state = state; @@ -138,9 +138,9 @@ es_event_target_new_state(ESEvent *eme, gint state) } ESEventTargetUpgrade * -es_event_target_new_upgrade(ESEvent *eme, gint major, gint minor, gint revision) +es_event_target_new_upgrade (ESEvent *eme, gint major, gint minor, gint revision) { - ESEventTargetUpgrade *t = e_event_target_new(&eme->event, ES_EVENT_TARGET_UPGRADE, sizeof(*t)); + ESEventTargetUpgrade *t = e_event_target_new (&eme->event, ES_EVENT_TARGET_UPGRADE, sizeof (*t)); t->major = major; t->minor = minor; @@ -179,15 +179,15 @@ static const EEventHookTargetMap emeh_targets[] = { }; static void -emeh_finalise(GObject *o) +emeh_finalise (GObject *o) { /*EPluginHook *eph = (EPluginHook *)o;*/ - ((GObjectClass *)emeh_parent_class)->finalize(o); + ((GObjectClass *)emeh_parent_class)->finalize (o); } static void -emeh_class_init(EPluginHookClass *klass) +emeh_class_init (EPluginHookClass *klass) { gint i; @@ -202,23 +202,23 @@ emeh_class_init(EPluginHookClass *klass) ((EPluginHookClass *)klass)->id = "org.gnome.evolution.shell.events:1.0"; for (i=0;emeh_targets[i].type;i++) - e_event_hook_class_add_target_map((EEventHookClass *)klass, &emeh_targets[i]); + e_event_hook_class_add_target_map ((EEventHookClass *)klass, &emeh_targets[i]); - ((EEventHookClass *)klass)->event = (EEvent *)es_event_peek(); + ((EEventHookClass *)klass)->event = (EEvent *)es_event_peek (); } GType -es_event_hook_get_type(void) +es_event_hook_get_type (void) { static GType type = 0; if (!type) { static const GTypeInfo info = { - sizeof(ESEventHookClass), NULL, NULL, (GClassInitFunc) emeh_class_init, NULL, NULL, - sizeof(ESEventHook), 0, (GInstanceInitFunc) NULL, + sizeof (ESEventHookClass), NULL, NULL, (GClassInitFunc) emeh_class_init, NULL, NULL, + sizeof (ESEventHook), 0, (GInstanceInitFunc) NULL, }; - emeh_parent_class = g_type_class_ref(e_event_hook_get_type()); + emeh_parent_class = g_type_class_ref (e_event_hook_get_type ()); type = g_type_register_static(e_event_hook_get_type(), "ESEventHook", &info, 0); } |