Mercurial > audlegacy
comparison audacious/widget.c @ 237:02c17a5c99e3 trunk
[svn] - Implement widget_draw_quick(widget_t *) for doing an immediate draw
operation on a widget.
- Use widget_draw_quick() to force a playlist update on unshade.
author | nenolod |
---|---|
date | Sat, 26 Nov 2005 18:28:19 -0800 |
parents | 0ee0b9b6db7e |
children | 580529c7e0c5 |
comparison
equal
deleted
inserted
replaced
236:be1be6f2aeeb | 237:02c17a5c99e3 |
---|---|
121 WIDGET(widget)->redraw = TRUE; | 121 WIDGET(widget)->redraw = TRUE; |
122 widget_unlock(widget); | 122 widget_unlock(widget); |
123 } | 123 } |
124 | 124 |
125 void | 125 void |
126 widget_draw_quick(Widget * widget) | |
127 { | |
128 widget_lock(widget); | |
129 if (WIDGET(widget)->draw != NULL) | |
130 WIDGET(widget)->draw(widget); | |
131 widget_unlock(widget); | |
132 } | |
133 | |
134 void | |
126 widget_list_add(GList ** list, Widget * widget) | 135 widget_list_add(GList ** list, Widget * widget) |
127 { | 136 { |
128 (*list) = g_list_append(*list, widget); | 137 (*list) = g_list_append(*list, widget); |
129 } | 138 } |
130 | 139 |