Re: [gtk-list] Re: notebooks



On Tue, 14 Jul 1998, Nwanua Elumeze wrote:

> I haven't tried but here's a suggestion:
> 
> 
> notebook = gtk_notebook_new ();

you need to add the notebook to the toplevel before realizing it.
> gtk_widget_realize (notebook);

> notebook1 = gtk_notebook_new ();
> gtk_widget_realize (notebook1);
> .....
> .....
> gtk_notebook_append_page (GTK_NOTEBOOK (notebook), notebook1, 
> somelabel);

same here. never realize a widget before adding it to a parent.
basically the whole thing should work without any forced realizations.

> 
> create and realize both notebooks, then append one as a page
> of the other.
> 
> 
> Nwanua.
> 
> 

---
ciaoTJ



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