diff options
author | waker <wakeroid@gmail.com> | 2009-08-16 14:01:49 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-16 14:01:49 +0200 |
commit | f8a8120b4f9d466a9663088fce899e9602e331bd (patch) | |
tree | 8e238beafccab82db19fee6af54844ba72faaeb1 /gtkplaylist.c | |
parent | effb118e2d367db74fb97489a040c7a8ac131ba0 (diff) |
fixed some more redraw issues
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 3705da1c..80f808d6 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -1503,3 +1503,15 @@ gtkpl_get_for_idx (gtkplaylist_t *ps, int idx) { } return it; } + +void +playlist_refresh (void) { + extern gtkplaylist_t main_playlist; + gtkplaylist_t *ps = &main_playlist; + memset (ps->fmtcache, 0, sizeof (int16_t) * 3 * pl_ncolumns * ps->nvisiblerows); + gtkpl_setup_scrollbar (ps); + GtkWidget *widget = ps->playlist; + gtkpl_draw_playlist (ps, 0, 0, widget->allocation.width, widget->allocation.height); + gtkpl_expose (ps, 0, 0, widget->allocation.width, widget->allocation.height); + search_refresh (); +} |