Mercurial > audlegacy
diff audacious/pbutton.h @ 424:d7d70779c074 trunk
[svn] Buttons are now tri-state, meaning they have both callbacks for push and
release. This can be used for creating timers between the two points of
push and release (for instance, to allow the rewind/forward buttons to
seek through songs if they are not exited immediately)
author | nenolod |
---|---|
date | Fri, 13 Jan 2006 20:03:07 -0800 |
parents | cb178e5ad177 |
children | f12d7e208b43 |
line wrap: on
line diff
--- a/audacious/pbutton.h Fri Jan 13 19:18:38 2006 -0800 +++ b/audacious/pbutton.h Fri Jan 13 20:03:07 2006 -0800 @@ -36,6 +36,7 @@ gboolean pb_inside; gboolean pb_allow_draw; void (*pb_push_cb) (void); + void (*pb_release_cb) (void); SkinPixmapId pb_skin_index1, pb_skin_index2; }; @@ -43,11 +44,12 @@ PButton *create_pbutton(GList ** wlist, GdkPixmap * parent, GdkGC * gc, gint x, gint y, gint w, gint h, gint nx, gint ny, - gint px, gint py, void (*cb) (void), SkinPixmapId si); + gint px, gint py, void (*push_cb) (void), SkinPixmapId si); PButton *create_pbutton_ex(GList ** wlist, GdkPixmap * parent, GdkGC * gc, gint x, gint y, gint w, gint h, gint nx, - gint ny, gint px, gint py, void (*cb) (void), - SkinPixmapId si1, SkinPixmapId si2); + gint ny, gint px, gint py, void (*push_cb) (void), + void (*release_cb) (void), SkinPixmapId si1, + SkinPixmapId si2); void free_pbutton(PButton * b); void pbutton_set_skin_index(PButton * b, SkinPixmapId si); void pbutton_set_skin_index1(PButton * b, SkinPixmapId si);