diff options
author | waker <wakeroid@gmail.com> | 2009-08-09 19:04:40 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-09 19:04:40 +0200 |
commit | efc88dc7af40e35c011f4bff226ef21b75175c1b (patch) | |
tree | e44fb1ff82eb3834de55b9c5e9d21d5347a1458a /search.c | |
parent | b8d8c455dfeaac3e932473e235322c8305e1bd5d (diff) |
fixed search window scrolling issue
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -87,6 +87,9 @@ 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) { @@ -95,6 +98,7 @@ on_searchentry_changed (GtkEditable *editable, 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); |