diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-12 20:02:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-08-20 02:17:55 +0800 |
commit | c85109fc322137596bf34cffc5445d568223c60d (patch) | |
tree | 711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /e-util/e-event.c | |
parent | 7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff) | |
download | gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/e-event.c')
-rw-r--r-- | e-util/e-event.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c index 409c23c9a9..c9d046c041 100644 --- a/e-util/e-event.c +++ b/e-util/e-event.c @@ -229,7 +229,7 @@ e_event_emit (EEvent *event, EEventPrivate *p = event->priv; GSList *events; - d(printf("emit event %s\n", id)); + d (printf ("emit event %s\n", id)); if (event->target != NULL) { g_warning ("Event already in progress.\n"); @@ -264,9 +264,6 @@ e_event_emit (EEvent *event, struct _event_info *info = events->data; EEventItem *item = info->item; - d(printf("event '%s' mask %08x target %08x\n", - item->id, item->enable, target->mask)); - if (item->enable & target->mask) continue; @@ -429,7 +426,7 @@ emph_construct_item (EPluginHook *eph, item = g_malloc0 (sizeof (*item)); - tmp = (gchar *)xmlGetProp(root, (const guchar *)"target"); + tmp = (gchar *) xmlGetProp (root, (const guchar *)"target"); if (tmp == NULL) goto error; map = g_hash_table_lookup (class->target_map, tmp); @@ -437,13 +434,13 @@ emph_construct_item (EPluginHook *eph, if (map == NULL) goto error; item->target_type = map->id; - item->type = e_plugin_hook_id(root, emph_item_types, "type"); + item->type = e_plugin_hook_id (root, emph_item_types, "type"); if (item->type == -1) item->type = E_EVENT_PASS; - item->priority = e_plugin_xml_int(root, "priority", 0); - item->id = e_plugin_xml_prop(root, "id"); - item->enable = e_plugin_hook_mask(root, map->mask_bits, "enable"); - item->user_data = e_plugin_xml_prop(root, "handle"); + item->priority = e_plugin_xml_int (root, "priority", 0); + item->id = e_plugin_xml_prop (root, "id"); + item->enable = e_plugin_hook_mask (root, map->mask_bits, "enable"); + item->user_data = e_plugin_xml_prop (root, "handle"); if (item->user_data == NULL || item->id == NULL) goto error; @@ -465,7 +462,7 @@ emph_construct (EPluginHook *eph, EEventHookClass *class; GSList *items = NULL; - d(printf("loading event hook\n")); + d (printf ("loading event hook\n")); if (((EPluginHookClass *) e_event_hook_parent_class)-> construct (eph, ep, root) == -1) @@ -476,7 +473,7 @@ emph_construct (EPluginHook *eph, node = root->children; while (node) { - if (strcmp((gchar *)node->name, "event") == 0) { + if (strcmp ((gchar *) node->name, "event") == 0) { EEventItem *item; item = emph_construct_item (eph, node, class); |