#include "xpm/play.xpm"
static void quit(
void *wid, gpointer data) {
gtk_main_quit();
}
static void selectionCallback(void *wid, gpointer data){
char text[128];
std::cout<<"you selected : "<<text<<std::endl;
}
int main(
int argc,
char *argv[]) {
gtk_init( &argc, &argv );
sc<<pair<string*, GtkCellRendererText*>(new string("text"), GTK_CELL_RENDERER_TEXT(gtk_cell_renderer_text_new()));
sc<<pair<string*, GtkCellRendererPixbuf*>(new string("pixbuf"), GTK_CELL_RENDERER_PIXBUF(gtk_cell_renderer_pixbuf_new()));
selection<<≻
GdkPixbuf *testPixBuf = gdk_pixbuf_new_from_xpm_data(static_cast<const char**>(playXPM));
selection<<"test col 1";
selection<<testPixBuf;
selection<<"test row 2";
selection.
add(testPixBuf,
true);
selection.
add(testPixBuf);
selection.
add(
"test row 3",
true);
topWindow<< hBox;
gtk_main();
}