[Glade-users] how can I display an entire text file in Gtktext widget?

I am new to glade and trying to create an editor in glade.So, I want to
change the content of a Gtktext widget with a text file when a button is
clicked.Both the text and button are children of diffrent windows. The
problem is, I cannot access the text widget from the callback function of
the button.what is the solution to get the text widget on "clicked" callback
of the button? I tried with global variables, But make returns error:
"gtk_text_insert: assertion 'GTK_IS_TEXT(text)' failed".
Please help me to insert text in to the text widget. Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20080708/9dcd2146/attachment.html 

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