comparison audacious/pbutton.c @ 431:4d1aa30a8776 trunk

[svn] create_pbutton() should hook on release, not on push. My bad. :P
author nenolod
date Sat, 14 Jan 2006 16:58:03 -0800
parents d7d70779c074
children f12d7e208b43
comparison
equal deleted inserted replaced
430:67cd014f35a2 431:4d1aa30a8776
172 b->pb_skin_index2 = si2; 172 b->pb_skin_index2 = si2;
173 b->pb_allow_draw = TRUE; 173 b->pb_allow_draw = TRUE;
174 b->pb_inside = 0; 174 b->pb_inside = 0;
175 b->pb_pressed = 0; 175 b->pb_pressed = 0;
176 widget_list_add(wlist, WIDGET(b)); 176 widget_list_add(wlist, WIDGET(b));
177
177 return b; 178 return b;
178 } 179 }
179 180
180 PButton * 181 PButton *
181 create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc, 182 create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc,
182 gint x, gint y, gint w, gint h, gint nx, gint ny, 183 gint x, gint y, gint w, gint h, gint nx, gint ny,
183 gint px, gint py, void (*cb) (void), SkinPixmapId si) 184 gint px, gint py, void (*cb) (void), SkinPixmapId si)
184 { 185 {
185 return create_pbutton_ex(wlist, parent, gc, x, y, w, h, nx, ny, px, py, 186 return create_pbutton_ex(wlist, parent, gc, x, y, w, h, nx, ny, px, py,
186 cb, NULL, si, si); 187 NULL, cb, si, si);
187 } 188 }
188 189
189 void 190 void
190 free_pbutton(PButton * b) 191 free_pbutton(PButton * b)
191 { 192 {