diff options
Diffstat (limited to 'plugins/gtkui/callbacks.c')
-rw-r--r-- | plugins/gtkui/callbacks.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index d8a71714..cacba4b0 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -491,8 +491,8 @@ seekbar_draw (GtkWidget *widget) { if (!cr) { return; } - GdkColor *clr_selection = gtkui_get_selection_color (); - GdkColor *clr_back = gtkui_get_back_color (); + GdkColor *clr_selection = gtkui_get_bar_foreground_color (); + GdkColor *clr_back = gtkui_get_bar_background_color (); DB_playItem_t *trk = deadbeef->streamer_get_playing_track (); if (!trk || deadbeef->pl_get_item_duration (trk) < 0) { @@ -624,6 +624,13 @@ on_seekbar_button_release_event (GtkWidget *widget, return FALSE; } +void +seekbar_redraw (void) { + GtkWidget *widget = lookup_widget (mainwin, "seekbar"); + seekbar_draw (widget); + seekbar_expose (widget, 0, 0, widget->allocation.width, widget->allocation.height); +} + gboolean on_mainwin_delete_event (GtkWidget *widget, GdkEvent *event, |