Re: [gtk-list] Re: GTK-- How do I add some text to a Gtk_Text ?



Ionut Borcoman at home <borco@mailbox.ro> writes:

> I've just found a solution for this: to add a handler for the show event
> of the Modeling class and insert the text in Gtk_Text there. Is there
> other solution ?

Yes. Call show() first thing in the constructor :

  Modeling() : 
    adj(0,0,100),
    itext(0,&adj), 
    iscrollbar(&adj) 
    {
      show();
      add(&ihbox);
      ihbox.show();
      ihbox.pack_start(&itext,false);
 ...

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent



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