20 #include "xpm/play.xpm"
22 static void quit(
void *wid, gpointer data) {
30 std::cout<<
"you selected : "<<text<<std::endl;
33 int main(
int argc,
char *argv[]) {
34 gtk_init( &argc, &argv );
41 sc<<pair<string*, GtkCellRendererText*>(
new string(
"text"), GTK_CELL_RENDERER_TEXT(gtk_cell_renderer_text_new()));
43 sc<<pair<string*, GtkCellRendererPixbuf*>(
new string(
"pixbuf"), GTK_CELL_RENDERER_PIXBUF(gtk_cell_renderer_pixbuf_new()));
49 GdkPixbuf *testPixBuf = gdk_pixbuf_new_from_xpm_data(static_cast<const char**>(playXPM));
52 selection<<
"test col 1";
54 selection<<testPixBuf;
58 selection<<
"test row 2";
60 selection.
add(testPixBuf,
true);
64 selection.
add(testPixBuf);
66 selection.
add(
"test row 3",
true);