Re: Problem with using gtk_text_insert



Yuushi <sakura texas net> writes:
I have a window with a button and a textbox (txtInput)
When I try to use the following inside the button_clicked event
        gtk_text_insert (GTK_TEXT (txtInput), NULL, NULL, NULL, "Insert
Text Dangit", -1);

I get the following error (I run my app from a terminal window to see the
errors)
        Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkText'
        Gtk-CRITICAL **: file gtktext.c: line 953 (gtk_text_insert):
assertion `text != NULL' failed.

The warning means that txtInput == NULL, for some reason.

Havoc




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