xpm



i am opening an xpm file on the box like that:

        style = gtk_widget_get_style(window1);
        pixmap = gdk_pixmap_create_from_xpm(window1->window, &mask,
        &style->bg[GTK_STATE_NORMAL], "../pixmaps/logo.xpm");
        pixmapWidget = gtk_pixmap_new(pixmap, mask);
        gtk_box_pack_start(GTK_BOX(box_1), pixmapWidget,
        FALSE, FALSE, 0);
        gtk_widget_show(pixmapWidget);

how can i make a function like on clicked. i can use "clicked" event in buttons. what should i use in xpm 
files?

i tried

gtk_signal_connect(GTK_OBJECT(pixmapWidget), "clicked",
                   GTK_SIGNAL_FUNC(go), NULL);

bu it didn't worked

-- 
PCc0d3r
X-G3n
http://xgen.linux.org.tr/

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]