~brandontschaefer/unity/fix-915828

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DashSearchBar.cpp

  • Committer: Brandon Schaefer
  • Date: 2012-02-02 04:01:30 UTC
  • Revision ID: brandontschaefer@gmail.com-20120202040130-g1sidz8mjw1q2iz3
Changed to use a signal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
  , search_hint("")
56
56
  , showing_filters(false)
57
57
  , can_refine_search(false)
58
 
  , im_focus(false)
59
58
  , search_bar_width_(642)
60
59
  , live_search_timeout_(0)
61
60
{
123
122
  im_active.SetGetterFunction(sigc::mem_fun(this, &SearchBar::get_im_active));
124
123
  showing_filters.changed.connect(sigc::mem_fun(this, &SearchBar::OnShowingFiltersChanged));
125
124
  can_refine_search.changed.connect([&] (bool can_refine) { show_filters_->SetVisible(can_refine); });
126
 
  im_focus.changed.connect([&] (bool focus) { focus ? pango_entry_->OnFocusIn() : pango_entry_->OnFocusOut();});
127
125
}
128
126
 
129
127
SearchBar::~SearchBar()