Hello, Le 11/06/2010, Mick <bare...@tpg.com.au> a écrit : > <object class="GtkTextView" id="chat_view"> > <property name="visible">True</property> > <property name="can_focus">True</property> > <property name="buffer">chat_buffer</property> > </object> > GtkTextView *chat_view; > GtkTextBuffer *chat_buffer; > GtkTextIter start, end; > GtkTextIter iter; > > main() > { > ... > chat_buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(chat_view)); > } It seems to me that you never initialise the chat_view variable ? From your code snippets, you give a value to the pointer chimp_window with the call to gtk_builder_get_object(); but there's no chat_view = ... I've never used gtkbuilder, but from what I've understand, you need to get_object() on the ids (names) you gave in your XML to be able to access them.
By the way, compile with -Wall, the compiler would have stop this saying that your going to use chat_view without initialise it first (I guess). Damien. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list