From e72abb965d8bd2db6ec6b79c23fa8649dbb91473 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 30 Jan 2009 17:35:29 +0000 Subject: Don't call a function in a variable declaration. Signed-off-by: Jonny Lamb svn path=/trunk/; revision=2353 --- libempathy-gtk/empathy-contact-selector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c index 467feb44a..dd7da1d8d 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) -- cgit v1.2.3