diff options
author | 2010-04-09 21:33:45 +0200 | |
---|---|---|
committer | 2010-04-09 21:33:45 +0200 | |
commit | 133b2f31913b25ff222bd9ba9aa716a990e0d94a (patch) | |
tree | b542d3d0b4dfc57013b280cde9a459debb9e05f2 /plugins/gtkui/gtkui.c | |
parent | f20673387d5a4df6126002601ead256911d4957f (diff) |
few drawing fixes in EQ, seekbar and volumebar
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r-- | plugins/gtkui/gtkui.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 60c996cf..008f8679 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -194,16 +194,13 @@ update_songinfo (gpointer ctx) { gtk_statusbar_push (sb, sb_context_id, sb_text); } - void seekbar_draw (GtkWidget *widget); - void seekbar_expose (GtkWidget *widget, int x, int y, int w, int h); if (mainwin) { GtkWidget *widget = lookup_widget (mainwin, "seekbar"); // translate volume to seekbar pixels songpos /= duration; songpos *= widget->allocation.width; if (fabs (songpos - last_songpos) > 0.01) { - seekbar_draw (widget); - seekbar_expose (widget, 0, 0, widget->allocation.width, widget->allocation.height); + gtk_widget_queue_draw (widget); last_songpos = songpos; } } |