Re: [gtk-list] Re: Gtk programming style/advice



Monday Oct 11 12:26:50 +0300 1999 Tomi Ollila <Tomi.Ollila@tfi.net> wrote:
> Monday Oct 11 10:15:26 +0000 1999 Andy Connor <amc50@eng.cam.ac.uk> wrote:
> > 
> > int main(int argc, char *argv[]){
> >   AllWidgets *everything;
> > 
> >   gtk_init(&argc,&argv);
> > 
> >   CreateMainWindow(everything);
> >   CreateTable(everything);
> >   gtk_main();
> >   
> >   return 0;
> > }
> 
> Where is the space for the structure everything points allocated !!! ?

I mean, add line

	everything = g_new0(AllWidgets, 1); at the beginning of the code.
> 
> Tomi


Sorry for wasting bandwidth w/ my previous mail.

Tomi



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