summaryrefslogtreecommitdiff
path: root/plugins/gtkui/gtkui.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-09 21:33:45 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-09 21:33:45 +0200
commit133b2f31913b25ff222bd9ba9aa716a990e0d94a (patch)
treeb542d3d0b4dfc57013b280cde9a459debb9e05f2 /plugins/gtkui/gtkui.c
parentf20673387d5a4df6126002601ead256911d4957f (diff)
few drawing fixes in EQ, seekbar and volumebar
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r--plugins/gtkui/gtkui.c5
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;
}
}