gtk window set icon from stock?



I tried following lines of code:

image = gtk_image_new_from_stock( GTK_STOCK_INDEX, GTK_ICON_SIZE_MENU );
pixbuf = gtk_image_get_pixbuf( GTK_IMAGE(image) );
gtk_window_set_icon( GTK_WINDOW(dialog), pixbuf );

but the dialog do have just default white-paper icon.

is there some right routine to set window icon from stock?



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