annotate audacious/widgets/hslider.c @ 1541:06329cbf186a trunk

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