summaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/search.c b/search.c
index 841b0063..824cee62 100644
--- a/search.c
+++ b/search.c
@@ -87,18 +87,6 @@ on_searchentry_changed (GtkEditable *editable,
extern gtkplaylist_t search_playlist;
gtkplaylist_t *ps = &search_playlist;
gtkpl_setup_scrollbar (ps);
- gtk_range_set_value (GTK_RANGE (ps->scrollbar), 0);
- ps->scrollpos = 0;
-#if 0
- int n = gtk_range_get_value (GTK_RANGE (ps->scrollbar));
- printf ("scroll=%d/size=%d\n", n, search_count);
- if (n >= search_count) {
- gtk_range_set_value (GTK_RANGE (ps->scrollbar), max (0, search_count-1));
- }
- if (ps->row >= search_count) {
- ps->row = search_count-1;
- }
-#endif
memset (ps->fmtcache, 0, sizeof (int16_t) * 3 * pl_ncolumns * ps->nvisiblerows);
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);