Re: gtk window set icon from stock?



Kang Jeong-Hee <Keizi mail co kr> writes:
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?

You really shouldn't use the stock icons for an application icon - you
need an icon unique to your application.

Havoc



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