annotate audacious/hslider.c @ 1096:9b4e9be457f0 trunk

[svn] - remove improper sampling rate change condition. Valid MP3s will not do this. Infact, I've never seen an MP3 that does this. Additionally, it doesn't even work with Shoutcast.
author nenolod
date Mon, 22 May 2006 16:37:39 -0700
parents cb178e5ad177
children f12d7e208b43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* XMMS - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * (at your option) any later version.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * GNU General Public License for more details.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 #include "hslider.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 #include <glib.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 #include <gdk/gdk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 #include <gtk/gtk.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 #include "skin.h"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 hslider_set_position(HSlider * hs,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 gint pos)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 if (pos == hs->hs_position || hs->hs_pressed)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 hs->hs_position = pos;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
35
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
36 if (hs->hs_frame_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
37 hs->hs_frame = hs->hs_frame_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
38
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
39 widget_draw(WIDGET(hs));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
40 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 gint
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 hslider_get_position(HSlider * hs)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 return hs->hs_position;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
48 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
49 hslider_draw(Widget * w)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
50 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51 HSlider *hs = (HSlider *) w;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 GdkPixmap *obj;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 obj = hs->hs_widget.parent;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 skin_draw_pixmap(bmp_active_skin, obj, hs->hs_widget.gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 hs->hs_skin_index, hs->hs_frame_offset,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 hs->hs_frame * hs->hs_frame_height, hs->hs_widget.x,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 hs->hs_widget.y, hs->hs_widget.width,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 hs->hs_widget.height);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 if (hs->hs_pressed)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62 skin_draw_pixmap(bmp_active_skin, obj, hs->hs_widget.gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 hs->hs_skin_index, hs->hs_knob_px,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 hs->hs_knob_py, hs->hs_widget.x + hs->hs_position,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 hs->hs_widget.y +
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 ((hs->hs_widget.height - hs->hs_knob_height) / 2),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 hs->hs_knob_width, hs->hs_knob_height);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 else
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69 skin_draw_pixmap(bmp_active_skin, obj, hs->hs_widget.gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70 hs->hs_skin_index, hs->hs_knob_nx, hs->hs_knob_ny,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 hs->hs_widget.x + hs->hs_position,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 hs->hs_widget.y +
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 ((hs->hs_widget.height - hs->hs_knob_height) / 2),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 hs->hs_knob_width, hs->hs_knob_height);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
78 hslider_button_press_cb(GtkWidget * w,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79 GdkEventButton * event,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 gpointer data)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 HSlider *hs = HSLIDER(data);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 gint x;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 if (event->button != 1)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
88 if (widget_contains(&hs->hs_widget, event->x, event->y)) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
89 x = event->x - hs->hs_widget.x;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
90 hs->hs_pressed = TRUE;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
91
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
92 if (x >= hs->hs_position && x < hs->hs_position + hs->hs_knob_width)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
93 hs->hs_pressed_x = x - hs->hs_position;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
94 else {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
95 hs->hs_position = x - (hs->hs_knob_width / 2);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
96 hs->hs_pressed_x = hs->hs_knob_width / 2;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
97 if (hs->hs_position < hs->hs_min)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
98 hs->hs_position = hs->hs_min;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
99 if (hs->hs_position > hs->hs_max)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
100 hs->hs_position = hs->hs_max;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
101 if (hs->hs_frame_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
102 hs->hs_frame = hs->hs_frame_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106 if (hs->hs_motion_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 hs->hs_motion_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 widget_draw(WIDGET(hs));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
110 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 hslider_motion_cb(GtkWidget * w, GdkEventMotion * event, gpointer data)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 HSlider *hs = (HSlider *) data;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 gint x;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119 if (hs->hs_pressed) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 if (!hs->hs_widget.visible) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 hs->hs_pressed = FALSE;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 return;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 x = event->x - hs->hs_widget.x;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
126 hs->hs_position = x - hs->hs_pressed_x;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
127
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 if (hs->hs_position < hs->hs_min)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129 hs->hs_position = hs->hs_min;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 if (hs->hs_position > hs->hs_max)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 hs->hs_position = hs->hs_max;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 if (hs->hs_frame_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135 hs->hs_frame = hs->hs_frame_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 if (hs->hs_motion_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 hs->hs_motion_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140 widget_draw(WIDGET(hs));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144 void
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 hslider_button_release_cb(GtkWidget * w,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 GdkEventButton * event,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 gpointer data)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 HSlider *hs = HSLIDER(data);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 if (hs->hs_pressed) {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 hs->hs_pressed = FALSE;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154 if (hs->hs_release_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 hs->hs_release_cb(hs->hs_position);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157 widget_draw(WIDGET(hs));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 }
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 HSlider *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162 create_hslider(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 gint x, gint y, gint w, gint h, gint knx, gint kny,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164 gint kpx, gint kpy, gint kw, gint kh, gint fh,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 gint fo, gint min, gint max, gint(*fcb) (gint),
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166 void (*mcb) (gint), void (*rcb) (gint), SkinPixmapId si)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 HSlider *hs;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 hs = g_new0(HSlider, 1);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171 widget_init(&hs->hs_widget, parent, gc, x, y, w, h, 1);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 hs->hs_widget.button_press_cb =
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 (void (*)(GtkWidget *, GdkEventButton *, gpointer))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174 hslider_button_press_cb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 hs->hs_widget.button_release_cb =
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 (void (*)(GtkWidget *, GdkEventButton *, gpointer))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 hslider_button_release_cb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 hs->hs_widget.motion_cb =
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179 (void (*)(GtkWidget *, GdkEventMotion *, gpointer))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 hslider_motion_cb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
181 hs->hs_widget.draw = hslider_draw;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
182 hs->hs_knob_nx = knx;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
183 hs->hs_knob_ny = kny;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
184 hs->hs_knob_px = kpx;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
185 hs->hs_knob_py = kpy;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
186 hs->hs_knob_width = kw;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
187 hs->hs_knob_height = kh;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
188 hs->hs_frame_height = fh;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 hs->hs_frame_offset = fo;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190 hs->hs_min = min;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 hs->hs_position = min;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 hs->hs_max = max;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 hs->hs_frame_cb = fcb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194 hs->hs_motion_cb = mcb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 hs->hs_release_cb = rcb;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 if (hs->hs_frame_cb)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197 hs->hs_frame = hs->hs_frame_cb(0);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 hs->hs_skin_index = si;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 widget_list_add(wlist, WIDGET(hs));
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 return hs;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203 }