aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-23 12:04:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-23 12:04:56 +0800
commit9acd121a93cf023501b48992ebe4341d4220301c (patch)
tree2506a9361c0043d7513d124abdd964467a750b98 /e-util
parent53d9c34bb570d65740de43f8a711dc6cc53d5977 (diff)
downloadgsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar.gz
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar.bz2
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar.lz
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar.xz
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.tar.zst
gsoc2013-evolution-9acd121a93cf023501b48992ebe4341d4220301c.zip
Coding style and whitespace cleanups.
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-event.c17
-rw-r--r--e-util/e-text-event-processor.c3
2 files changed, 14 insertions, 6 deletions
diff --git a/e-util/e-event.c b/e-util/e-event.c
index 7d0680082c..c1902082bc 100644
--- a/e-util/e-event.c
+++ b/e-util/e-event.c
@@ -170,7 +170,10 @@ EEvent *e_event_construct(EEvent *ep, const gchar *id)
* Return value: An opaque key which can later be passed to remove_items.
**/
gpointer
-e_event_add_items(EEvent *event, GSList *items, EEventItemsFunc freefunc, gpointer data)
+e_event_add_items (EEvent *event,
+ GSList *items,
+ EEventItemsFunc freefunc,
+ gpointer data)
{
struct _event_node *node;
@@ -234,7 +237,8 @@ ee_cmp(gconstpointer ap, gconstpointer bp)
* e_event_emit:
* @ee: An initialised EEvent, potentially with registered event listeners.
* @id: Event name. This will be compared against EEventItem.id.
- * @target: The target describing the event context. This will be implementation defined.
+ * @target: The target describing the event context. This will be
+ * implementation defined.
*
* Emit an event. @target will automatically be freed once its
* emission is complete.
@@ -280,7 +284,8 @@ e_event_emit(EEvent *event, const gchar *id, EEventTarget *target)
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));
+ d(printf("event '%s' mask %08x target %08x\n",
+ item->id, item->enable, target->mask));
if (item->enable & target->mask)
continue;
@@ -553,7 +558,9 @@ e_event_hook_get_type(void)
* map enumerates a single target type and th eenable mask bit names,
* so that the type can be loaded automatically by the base EEvent class.
**/
-void e_event_hook_class_add_target_map(EEventHookClass *class, const EEventHookTargetMap *map)
+void e_event_hook_class_add_target_map (EEventHookClass *class,
+ const EEventHookTargetMap *map)
{
- g_hash_table_insert(class->target_map, (gpointer)map->type, (gpointer)map);
+ g_hash_table_insert (
+ class->target_map, (gpointer)map->type, (gpointer)map);
}
diff --git a/e-util/e-text-event-processor.c b/e-util/e-text-event-processor.c
index 6496a63294..870aeed58f 100644
--- a/e-util/e-text-event-processor.c
+++ b/e-util/e-text-event-processor.c
@@ -90,7 +90,8 @@ e_text_event_processor_init (ETextEventProcessor *tep)
}
gint
-e_text_event_processor_handle_event (ETextEventProcessor *tep, ETextEventProcessorEvent *event)
+e_text_event_processor_handle_event (ETextEventProcessor *tep,
+ ETextEventProcessorEvent *event)
{
if (E_TEXT_EVENT_PROCESSOR_GET_CLASS(tep)->event)
return E_TEXT_EVENT_PROCESSOR_GET_CLASS(tep)->event(tep, event);