#include "xpm/play.xpm"
static void quit(
void *wid, gpointer data){
gtk_main_quit();
}
static void toggleButton(void *widget, gpointer data){
cout<<"ToggleButton "<<gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))<<endl;
}
static void playButton(void *widget, gpointer data){
cout<<"playButton "<<endl;
}
int main(
int argc,
char *argv[]){
gtk_init( &argc, &argv );
<<
BUTTONPIXMAPSTRUCT(playXPM, (
void (*)(
void*,
void*))reinterpret_cast<GCallback>(playButton), 0);
hBox<<buttons;
topWindow<< hBox;
gtk_main();
}