From bdecc6238a2bf3ffc94d522da466514b02014fda Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 24 Oct 2011 15:27:38 +0200 Subject: [PATCH] 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 --- libempathy-gtk/empathy-log-window.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index cc3a9061..ab15b161 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)) -- 2.39.2