gui: Use the search entry's "search_changed" signal

This greatly improves usability while searching, since we no longer have
to refilter the song list for every key press.

Signed-off-by: Anna Schumaker <anna@ocarinaproject.net>
This commit is contained in:
Anna Schumaker 2015-04-10 13:11:12 +00:00 committed by Anna Schumaker
parent ec4d3b945e
commit 3375e921c4
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ pkgdesc="A simple GTK and gstreamer based music player."
url="http://www.ocarinaproject.net/"
arch=('x86_64' 'i686')
license=('GPL2')
depends=('gtkmm3' 'gstreamer' 'gst-plugins-base' 'taglib')
depends=('gtkmm3>=3.16' 'gstreamer' 'gst-plugins-base' 'taglib')
optdepends=('gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-ugly')
makedepends=('scons')
conflicts=()

View File

@ -44,7 +44,7 @@ void Tab :: tab_finish_init()
&Tab::on_filter_visible));
tab_search->signal_key_release_event().connect(sigc::mem_fun(*this,
&Tab::on_entry_key_released));
tab_search->signal_changed().connect(sigc::mem_fun(*this,
tab_search->signal_search_changed().connect(sigc::mem_fun(*this,
&Tab::on_entry_changed));
tab_treeview->set_model(tab_filter);