On Wed, Jan 30, 2013 at 2:17 PM, Ferdinand Ramirez < ramirez.ferdin...@yahoo.com> wrote:
> However, as I pointed out, it works if I replace the GtkTextView with a > GtkEntry within each cell of the table. > > 2013/1/30 Ferdinand Ramirez <ramirez.ferdin...@yahoo.com> > > > This works fine if it is all done from the main program. However, when > I > > > create the hierarchy described above in another thread and call > > > gtk_widget_show_all on the GtkFrame that is added, I get an error in > paint > > > saying code should not be reached. Before this error, there is a > warning > > > that the iterator in text view has changed. I am not sure if the > warning > > > and error are related. > If you are getting an iterator warning, you may be trying to use an invalidated GtkTextIter. Be sure to read http://developer.gnome.org/gtk3/stable/TextWidget.html Particularly,"Iterators are not valid indefinitely; whenever the buffer is modified in a way that affects the number of characters in the buffer, all outstanding iterators become invalid. (Note that deleting 5 characters and then reinserting 5 still invalidates iterators, though you end up with the same number of characters you pass through a state with a different number). Because of this, iterators can't be used to preserve positions across buffer modifications." Using an invalid iter is essentially the same as writing data randomly to memory. The GtkEntry probably works because it doesn't have a GtkTextBuffer/Iter. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list