Re: GTK+ Warning: Can't set a parent on widget which has a parent

On Fri, 3 Jun 2011 04:08:22 -0400
Phong Cao <phngcv gmail com> wrote:
> Hello everybody,
> I am trying to write the interface for my music manager using GTK+.
> The program was compiled successfully. However, when I executed it,
> the machine returned errors:
> (dingo_draft:6462): Gtk-WARNING **: Can't set a parent on widget which
> has a parent(dingo_draft:6462): Gtk-CRITICAL **: gtk_widget_realize:
> assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)'
> failed**Gtk:ERROR:/build/buildd/gtk+2.0-2.20.1/gtk/gtkwidget.c:8760:gtk_widget_real_map:
> assertion failed: (gtk_widget_get_realized (widget))Aborted

I have no idea if it causes your problem (probably not), but you insert
a tree view into a scrolled window using gtk_container_add(), not


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