stock pixmap


I am trying to get from my application some stock pixmap to create buttons with this pixmaps. I would like to create a tool bar like the Gimp one.

To get these pixmaps I do this :

GtkWidget *icon;

icon = gnome_stock_pixmap_widget(GTK_WIDGET(button), GNOME_STOCK_PIXMAP_CUT);

When I execute this I have the following erro:
IMLIB ERROR: Cannot allocate XImage buffer
Gdk-Critical **: file gdkwindow.c: line 1406 (gdk_window_get_visual): assertion 'window !=NULL' failed.

Did I forget something?

Is the window argument is the pointer to the widget which will contains the pixmap ? In my case the button.

Thank you

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