Gtk_Text question



Hi, 

what's wrong with my following code when I try to put a string into a text
widget? I got "** ERROR **: sigsegv caught" message when I ran it (not
compiled it). Your help is appreciated! 

Lixin

==================================================================
...

Gtk_Text* my_text = new Gtk_Text();

int i = 0;

// syntax: void insert_text(const gchar *new_text, gint new_text_length,
//                          gint *position); of class Gtk_Editable

my_text->insert_text( "Hello", 5, &i );

my_text->show();

...



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