diff options
author | Felix Kaser <f.kaser@gmx.net> | 2010-08-03 20:19:46 +0800 |
---|---|---|
committer | Felix Kaser <f.kaser@gmx.net> | 2010-08-03 21:55:47 +0800 |
commit | e9125fce7bd864e9b9292c2b890007b2c245f536 (patch) | |
tree | 523fde6c1d1c975568426661b83c09c5e83792c2 /libempathy-gtk | |
parent | dfa83a219e8ac885f2e9930656e5d186a164b386 (diff) | |
download | gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar.gz gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar.bz2 gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar.lz gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar.xz gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.tar.zst gsoc2013-empathy-e9125fce7bd864e9b9292c2b890007b2c245f536.zip |
use member variable instead of getter
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-view.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c index 4ffbed3c5..da6a6c799 100644 --- a/libempathy-gtk/empathy-individual-view.c +++ b/libempathy-gtk/empathy-individual-view.c @@ -190,11 +190,9 @@ individual_view_filter_visible_func (GtkTreeModel *model, FolksIndividual *individual = NULL; gboolean is_group, is_separator, valid; GtkTreeIter child_iter; - gboolean visible, show_offline, is_online; + gboolean visible, is_online; gboolean is_searching = TRUE; - show_offline = empathy_individual_view_get_show_offline (self); - if (priv->search_widget == NULL || !gtk_widget_get_visible (priv->search_widget)) is_searching = FALSE; @@ -215,7 +213,7 @@ individual_view_filter_visible_func (GtkTreeModel *model, if (is_searching) return visible; else - return (show_offline || is_online); + return (priv->show_offline || is_online); } if (is_separator) @@ -241,7 +239,7 @@ individual_view_filter_visible_func (GtkTreeModel *model, /* show group if it has at least one visible contact in it */ if ((is_searching && visible) || - (!is_searching && (show_offline || is_online))) + (!is_searching && (priv->show_offline || is_online))) return TRUE; } |