aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 21:27:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-27 19:44:29 +0800
commitbdecc6238a2bf3ffc94d522da466514b02014fda (patch)
treef6a553f21fa2959b8af49de88bad5687a60bb2f2
parent75e36b52f5dbe565aba6fcaf201a8ed1f2557b02 (diff)
downloadgsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar.gz
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar.bz2
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar.lz
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar.xz
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.tar.zst
gsoc2013-empathy-bdecc6238a2bf3ffc94d522da466514b02014fda.zip
log-window: use empathy_account_chooser_refilter()
It's cleaner than re-setting the same filter function. https://bugzilla.gnome.org/show_bug.cgi?id=662609
-rw-r--r--libempathy-gtk/empathy-log-window.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index cc3a90614..ab15b1616 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -3700,10 +3700,10 @@ log_window_logger_clear_account_cb (TpProxy *proxy,
gtk_tree_store_clear (self->priv->store_events);
log_window_who_populate (self);
- /* Re-filter the account chooser so the accounts without logs get greyed out */
- empathy_account_chooser_set_filter (
- EMPATHY_ACCOUNT_CHOOSER (self->priv->account_chooser),
- empathy_account_chooser_filter_has_logs, NULL);
+ /* Re-filter the account chooser so the accounts without logs get
+ * greyed out */
+ empathy_account_chooser_refilter (
+ EMPATHY_ACCOUNT_CHOOSER (self->priv->account_chooser));
}
static void
@@ -3731,8 +3731,8 @@ log_window_delete_menu_clicked_cb (GtkMenuItem *menuitem,
account_chooser = (EmpathyAccountChooser *) empathy_account_chooser_new ();
empathy_account_chooser_set_has_all_option (account_chooser, TRUE);
- empathy_account_chooser_set_filter (account_chooser,
- empathy_account_chooser_filter_has_logs, NULL);
+
+ empathy_account_chooser_refilter (account_chooser);
/* Select the same account as in the history window */
if (empathy_account_chooser_is_ready (account_chooser))