[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gtk window set icon from stock?
- From: Havoc Pennington <hp redhat com>
- To: Kang Jeong-Hee <Keizi mail co kr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk window set icon from stock?
- Date: 12 Apr 2002 12:22:20 -0400
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]