diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-10 00:17:08 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-10 00:17:08 +0800 |
commit | 80adcff901ecee842f0bfb6a04a0bf0819da0926 (patch) | |
tree | 40b2980c886589991a6177cb1d297171bf3ab86c /src | |
parent | cd4569cf9aafb228edff730131a41ee26460c624 (diff) | |
download | gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar.gz gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar.bz2 gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar.lz gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar.xz gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.tar.zst gsoc2013-empathy-80adcff901ecee842f0bfb6a04a0bf0819da0926.zip |
Clean some coding style
svn path=/trunk/; revision=2220
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-event-manager.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 8a613039b..269e0faa7 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -151,10 +151,9 @@ event_remove (EventPriv *event) } static void -event_manager_add (EmpathyEventManager *manager, EmpathyContact *contact, - const gchar *icon_name, const gchar *message, - EventManagerApproval *approval, EventFunc func, - gpointer user_data) +event_manager_add (EmpathyEventManager *manager, EmpathyContact *contact, + const gchar *icon_name, const gchar *message, EventManagerApproval *approval, + EventFunc func, gpointer user_data) { EmpathyEventManagerPriv *priv = GET_PRIV (manager); EventPriv *event; @@ -166,9 +165,7 @@ event_manager_add (EmpathyEventManager *manager, EmpathyContact *contact, event->func = func; event->user_data = user_data; event->manager = manager; - - if (approval) - event->approval = approval; + event->approval = approval; DEBUG ("Adding event %p", event); priv->events = g_slist_prepend (priv->events, event); @@ -182,8 +179,8 @@ event_channel_process_func (EventPriv *event) } static void -event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat, - EmpathyMessage *message, EventManagerApproval *approval) +event_manager_chat_message_received_cb (EmpathyTpChat *tp_chat, + EmpathyMessage *message, EventManagerApproval *approval) { EmpathyContact *sender; gchar *msg; |