Re: [gtk-list] WM icons




On Sun, 20 Dec 1998, Alexander Kotelnikov wrote:
> 
>     icon=gdk_pixmap_create_from_xpm(my_window->window,
> 				    NULL,
> 				    NULL,
> 				    "icon.xpm");

Maybe check here that icon != NULL, since there could have been an error
loading the file...

>     gdk_window_set_icon(my_window->window,
> 				   NULL,
> 				   icon,
> 				   NULL);
> 
> But I have no warnings and no icon, can anyone explain me what's up or
> send me a simple example?

my_window is realized, right? 

Looks like it should work.

Havoc




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