aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-02 21:12:34 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-03 00:39:24 +0800
commitaf28ad4fad5b0298d61d1b4c5eec31b2e8e00409 (patch)
tree9490bea3009369ad3db9bf52455a3d7a21e0c803
parent7e117916ca6ca5eba9108638885885ef4d19ab1e (diff)
downloadgsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar.gz
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar.bz2
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar.lz
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar.xz
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.tar.zst
gsoc2013-empathy-af28ad4fad5b0298d61d1b4c5eec31b2e8e00409.zip
fix coding styles
-rw-r--r--src/empathy-status-icon.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 1470a19e4..3af060acf 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -169,15 +169,14 @@ status_icon_update_notification (EmpathyStatusIcon *icon)
notify_notification_set_timeout (priv->notification,
NOTIFY_EXPIRES_DEFAULT);
- if (priv->notify_supports_actions)
- {
- notify_notification_add_action (priv->notification,
- "respond",
- _("Respond"),
- (NotifyActionCallback) notification_action_cb,
- icon,
- NULL);
- }
+ if (priv->notify_supports_actions) {
+ notify_notification_add_action (priv->notification,
+ "respond",
+ _("Respond"),
+ (NotifyActionCallback) notification_action_cb,
+ icon,
+ NULL);
+ }
g_signal_connect (priv->notification, "closed",
G_CALLBACK (status_icon_notification_closed_cb), icon);
@@ -564,7 +563,7 @@ empathy_status_icon_init (EmpathyStatusIcon *icon)
{
EmpathyStatusIconPriv *priv = G_TYPE_INSTANCE_GET_PRIVATE (icon,
EMPATHY_TYPE_STATUS_ICON, EmpathyStatusIconPriv);
- GList *list, *l;
+ GList *list, *l;
icon->priv = priv;
priv->icon = gtk_status_icon_new ();
@@ -607,13 +606,12 @@ empathy_status_icon_init (EmpathyStatusIcon *icon)
/* Query the notification daemon to check if it supports actions */
priv->notify_supports_actions = FALSE;
list = notify_get_server_caps ();
- for (l = list; l != NULL; l = g_list_next (l))
- {
- gchar *caps = l->data;
- if (!tp_strdiff (caps, "actions"))
- priv->notify_supports_actions = TRUE;
- g_free (caps);
- }
+ for (l = list; l != NULL; l = g_list_next (l)) {
+ gchar *caps = l->data;
+ if (!tp_strdiff (caps, "actions"))
+ priv->notify_supports_actions = TRUE;
+ g_free (caps);
+ }
g_list_free (list);
}