Mercurial > audlegacy
comparison audacious/playstatus.c @ 1273:3b990c26fc46 trunk
[svn] - Support for the buffer indicator in playpaus.png that was apparently
ignored by XMMS devs. Supports mp3 streams only, at the moment.
author | nhjm449 |
---|---|
date | Fri, 16 Jun 2006 02:17:33 -0700 |
parents | 0ee0b9b6db7e |
children | f12d7e208b43 |
comparison
equal
deleted
inserted
replaced
1272:11785f0bf967 | 1273:3b990c26fc46 |
---|---|
32 | 32 |
33 if (!w) | 33 if (!w) |
34 return; | 34 return; |
35 | 35 |
36 obj = ps->ps_widget.parent; | 36 obj = ps->ps_widget.parent; |
37 | 37 if (ps->ps_status == STATUS_STOP && ps->ps_status_buffering == TRUE) |
38 if (ps->ps_status == STATUS_PLAY) | 38 ps->ps_status_buffering = FALSE; |
39 if (ps->ps_status == STATUS_PLAY && ps->ps_status_buffering == TRUE) | |
40 skin_draw_pixmap(bmp_active_skin, obj, ps->ps_widget.gc, | |
41 SKIN_PLAYPAUSE, 39, 0, ps->ps_widget.x, | |
42 ps->ps_widget.y, 3, 9); | |
43 else if (ps->ps_status == STATUS_PLAY) | |
39 skin_draw_pixmap(bmp_active_skin, obj, ps->ps_widget.gc, | 44 skin_draw_pixmap(bmp_active_skin, obj, ps->ps_widget.gc, |
40 SKIN_PLAYPAUSE, 36, 0, ps->ps_widget.x, | 45 SKIN_PLAYPAUSE, 36, 0, ps->ps_widget.x, |
41 ps->ps_widget.y, 3, 9); | 46 ps->ps_widget.y, 3, 9); |
42 else | 47 else |
43 skin_draw_pixmap(bmp_active_skin, obj, ps->ps_widget.gc, | 48 skin_draw_pixmap(bmp_active_skin, obj, ps->ps_widget.gc, |
70 | 75 |
71 ps->ps_status = status; | 76 ps->ps_status = status; |
72 widget_draw(WIDGET(ps)); | 77 widget_draw(WIDGET(ps)); |
73 } | 78 } |
74 | 79 |
80 void | |
81 playstatus_set_status_buffering(PlayStatus * ps, gboolean status) | |
82 { | |
83 if (!ps) | |
84 return; | |
85 | |
86 ps->ps_status_buffering = status; | |
87 widget_draw(WIDGET(ps)); | |
88 } | |
89 | |
75 PlayStatus * | 90 PlayStatus * |
76 create_playstatus(GList ** wlist, GdkPixmap * parent, | 91 create_playstatus(GList ** wlist, GdkPixmap * parent, |
77 GdkGC * gc, gint x, gint y) | 92 GdkGC * gc, gint x, gint y) |
78 { | 93 { |
79 PlayStatus *ps; | 94 PlayStatus *ps; |