diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-22 20:26:05 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-12-22 20:26:05 +0100 |
commit | 5a583de9f929865665853fb994ea04b95ce4bb17 (patch) | |
tree | b3315bffdac9abd9d6dd5e451937bcf4c1c0b3b9 /plugins/gtkui | |
parent | 73378197a4298f9a427766ee739667e4a534b301 (diff) |
search_refresh no longer breaks selection
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/search.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c index 57614a01..07629f71 100644 --- a/plugins/gtkui/search.c +++ b/plugins/gtkui/search.c @@ -87,8 +87,11 @@ on_searchentry_changed (GtkEditable *editable, void search_refresh (void) { - if (searchwin) { - on_searchentry_changed (GTK_EDITABLE (lookup_widget (searchwin, "searchentry")), NULL); + if (searchwin && GTK_WIDGET_VISIBLE (searchwin)) { + gtkplaylist_t *ps = &search_playlist; + gtkpl_draw_playlist (ps, 0, 0, ps->playlist->allocation.width, ps->playlist->allocation.height); + gtkpl_expose (ps, 0, 0, ps->playlist->allocation.width, ps->playlist->allocation.height); + //on_searchentry_changed (GTK_EDITABLE (lookup_widget (searchwin, "searchentry")), NULL); } } |