Re: gtk_window_set_icon_list



--- TP Muller <tpm01 aber ac uk> wrote:
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

That Was What I Needed.
Maybe Next Time I'll Remember To Examine The Returns


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