From: Jonny Lamb Date: Fri, 30 Jan 2009 17:35:29 +0000 (+0000) Subject: Don't call a function in a variable declaration. X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=e72abb965d8bd2db6ec6b79c23fa8649dbb91473 Don't call a function in a variable declaration. Signed-off-by: Jonny Lamb svn path=/trunk/; revision=2353 --- diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c index 467feb44..dd7da1d8 100644 --- a/libempathy-gtk/empathy-contact-selector.c +++ b/libempathy-gtk/empathy-contact-selector.c @@ -131,12 +131,13 @@ static void contact_selector_manage_sensitivity (EmpathyContactSelector *selector) { EmpathyContactSelectorPriv *priv = GET_PRIV (selector); + guint number_online_contacts; /* FIXME - make this work when offline contacts are shown. * The following value needs to be the number of entries shown * excluding the blank entry (if present). */ - guint number_online_contacts = contact_selector_get_number_online_contacts ( + number_online_contacts = contact_selector_get_number_online_contacts ( GTK_TREE_STORE (priv->store)); if (number_online_contacts != 0)