Re: gtk_window_set_icon_list



On Monday 12 August 2002 06:46, me ok wrote:

I have managed to get gtk_window_set_icon to work but
not when using a GList. Here is a snippit of the relevent code:

GList *Main_Icon_List=NULL;
gchar *Main_Icon_Names[6][13]= { "micon16.png",
"micon32.png", "micon48.png", "micon64.png",
"micon128.png" };
GdkPixbuf *Icon;

Icon = gdk_pixbuf_new_from_file(Main_Icon_Names[0],
NULL);
g_list_append(Main_Icon_List, Icon);
gtk_window_set_icon_list(GTK_WINDOW(Window),
Main_Icon_List);

I suppose you have to do

Main_Icon_List = g_list_append (Main_Icon_List, Icon);

Cheers
-Tim





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