summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-22 20:26:05 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-22 20:26:05 +0100
commit5a583de9f929865665853fb994ea04b95ce4bb17 (patch)
treeb3315bffdac9abd9d6dd5e451937bcf4c1c0b3b9
parent73378197a4298f9a427766ee739667e4a534b301 (diff)
search_refresh no longer breaks selection
-rw-r--r--plugins/gtkui/search.c7
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);
}
}