Re: Assertion from gtk_notebook_append_page
- From: David Nečas <yeti physics muni cz>
- To: Ian <ian underpressuredivers com>
- Cc: gtk-list gnome org
- Subject: Re: Assertion from gtk_notebook_append_page
- Date: Sun, 6 Dec 2009 21:42:44 +0100
On Sun, Dec 06, 2009 at 12:08:37PM -0800, Ian wrote:
> Any ideas on this one?
>
> I'm getting this printed on every call to add a page to a GtkNotebook,
> although the pages are added OK and the notebook displays fine:
>
> (hcpgui.exe:3628): Gtk-CRITICAL **: gtk_container_foreach: assertion
> `GTK_IS_CONTAINER (container)' failed
>
> The assertions are printed when gtk_notebook_append_page is called in the
> following sequence:
>
> viewWin = gtk_scrolled_window_new(NULL, NULL);
> .
> noteBook = gtk_notebook_new();
> lbl = gtk_label_new("some text");
> gtk_notebook_append_page(GTK_NOTEBOOK(noteBook), viewWin, lbl);
And the backtrace is (use G_DEBUG=fatal-criticals)? I.e. how it gets to
gtk_container_foreach()?
Yeti
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]