Re: Gtk-CRITICAL - getting meaningful information
- From: Damien Caliste <damien caliste cea fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: Gtk-CRITICAL - getting meaningful information
- Date: Fri, 11 Jun 2010 09:45:59 +0200
Hello,
Le 11/06/2010, Mick <bareman 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]