aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorElliot Fairweather <elliot.fairweather@collabora.co.uk>2009-04-11 00:56:14 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-04-11 00:56:14 +0800
commit05ec8e2615766849326543337c1a58cd7b63b0f5 (patch)
tree3802478d30408f718e74f5c3ad7dc3ad32fb4827 /libempathy-gtk
parent978a88b55fdafe113dd5d44a5d6c66326bc8deef (diff)
downloadgsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar.gz
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar.bz2
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar.lz
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar.xz
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.tar.zst
gsoc2013-empathy-05ec8e2615766849326543337c1a58cd7b63b0f5.zip
revert a little. search for blank contact in store.
From: Elliot Fairweather <elliot.fairweather@collabora.co.uk> svn path=/trunk/; revision=2808
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-selector.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c
index 46e6e63a3..539629a23 100644
--- a/libempathy-gtk/empathy-contact-selector.c
+++ b/libempathy-gtk/empathy-contact-selector.c
@@ -74,7 +74,7 @@ contact_selector_get_number_online_contacts (GtkTreeModel *model)
}
static gboolean
-contact_selector_get_iter_for_blank_contact (GtkTreeModel *model,
+contact_selector_get_iter_for_blank_contact (GtkTreeStore *model,
GtkTreeIter *blank_iter)
{
GtkTreeIter tmp_iter;
@@ -82,10 +82,10 @@ contact_selector_get_iter_for_blank_contact (GtkTreeModel *model,
gboolean is_present = FALSE;
gboolean ok;
- for (ok = gtk_tree_model_get_iter_first (model, &tmp_iter);
- ok; ok = gtk_tree_model_iter_next (model, &tmp_iter))
+ for (ok = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (model), &tmp_iter);
+ ok; ok = gtk_tree_model_iter_next (GTK_TREE_MODEL (model), &tmp_iter))
{
- gtk_tree_model_get (model,
+ gtk_tree_model_get (GTK_TREE_MODEL (model),
&tmp_iter, EMPATHY_CONTACT_LIST_STORE_COL_CONTACT,
&tmp_contact, -1);
if (tmp_contact == NULL)
@@ -129,7 +129,8 @@ contact_selector_remove_blank_contact (EmpathyContactSelector *selector)
EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
GtkTreeIter blank_iter;
- if (contact_selector_get_iter_for_blank_contact (priv->model, &blank_iter))
+ if (contact_selector_get_iter_for_blank_contact
+ (GTK_TREE_STORE (priv->store), &blank_iter))
gtk_tree_store_remove (GTK_TREE_STORE (priv->store), &blank_iter);
}