Re: [gtk-list] Problem with text widget




On Mon, 29 Jun 1998, Daniel Dorau wrote:
> 
> I have a problem wih the text widget. In a small sample program (attached)
> I want to create a text widget and insert text into it. It compiles ok
> but traps with:
> 
> ** ERROR **: file gtktext.c: line 697 (gtk_text_insert):
> "GTK_WIDGET_REALIZED(text)"
> IOT trap/Abort
> 

You need to realize the text widget before inserting text. 

Just gtk_widget_realize(text) and you should be OK.

Havoc Pennington ==== http://pobox.com/~hp



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