Re: Global GList in gtk+ application

2010-06-19 Thread Ardhan Madras
Then how global variable `Data' was declared in your code? --- kuleshovm...@gmail.com wrote: From: Alexander Kuleshov To: gtk-app-devel-list@gnome.org Subject: Global GList in gtk+ application Date: Sat, 12 Jun 2010 12:03:40 +0600 Hello, I need in global list in my gtk+ application,

Re: Global GList in gtk+ application

2010-06-12 Thread Colomban Wendling
Le 12/06/2010 08:03, Alexander Kuleshov a écrit : > [snip] > > I have a function bulid my list: > gboolean build_list() > { >Data->list = g_list_append(Data->list, "First "); >Data->list = g_list_append(Data->list, "Second "); >Data->list = g_list_append(Data->list, "Third "); > >g_

Re: Global GList in gtk+ application

2010-06-12 Thread Tor Lillqvist
If you want to show code, at least show something that compiles and exhibits your problem (if any), i.e. a minimal but complete sample. Anyway, I don't see what your problem has to do with GTK+. --tml ___ gtk-app-devel-list mailing list gtk-app-devel-lis

Global GList in gtk+ application

2010-06-11 Thread Alexander Kuleshov
Hello, I need in global list in my gtk+ application, i use for it GList: For example: I have structure: typedef struct _data { Glist list; }Data; I want to use one copy of the list in the whole program: I have a function bulid my list: gboolean build_list() { Data->list = g_list_append(Da