1. EuGTK - toplevel problem
- Posted by Jerry_Story Aug 23, 2010
- 1626 views
I'm getting a bunch of instances of the following error(s).
<unknown>:14001): Gtk-CRITICAL **: gtk_widget_set_child_visible: assertion `!gtk_widget_is_toplevel (widget)' failed (<unknown>:14001): Gtk-WARNING **: Can't set a parent on a toplevel widgetNo line or line number is given. I'm guessing that the problem has to do with GtkWindow. I have a bunch of GtkWindows. Can a GtkWindow be put on something such as a GtkVBox or a GtkHBox?
2. Re: EuGTK - toplevel problem
- Posted by jimcbrown (admin) Aug 23, 2010
- 1598 views
I'm getting a bunch of instances of the following error(s).
<unknown>:14001): Gtk-CRITICAL **: gtk_widget_set_child_visible: assertion `!gtk_widget_is_toplevel (widget)' failed (<unknown>:14001): Gtk-WARNING **: Can't set a parent on a toplevel widgetNo line or line number is given. I'm guessing that the problem has to do with GtkWindow. I have a bunch of GtkWindows. Can a GtkWindow be put on something such as a GtkVBox or a GtkHBox?
No, GtkWindows must be top-level (i.e. not have a parent or container). The only exception to this is that a GtkWindow may have another GtkWindow as a parent.
3. Re: EuGTK - toplevel problem
- Posted by Jerry_Story Aug 23, 2010
- 1562 views
I'm getting a bunch of instances of the following error(s).
<unknown>:14001): Gtk-CRITICAL **: gtk_widget_set_child_visible: assertion `!gtk_widget_is_toplevel (widget)' failed (<unknown>:14001): Gtk-WARNING **: Can't set a parent on a toplevel widgetNo line or line number is given. I'm guessing that the problem has to do with GtkWindow. I have a bunch of GtkWindows. Can a GtkWindow be put on something such as a GtkVBox or a GtkHBox?
No, GtkWindows must be top-level (i.e. not have a parent or container). The only exception to this is that a GtkWindow may have another GtkWindow as a parent.
Is there any way in EuGTK to put multiple windows on a window?
4. Re: EuGTK - toplevel problem
- Posted by jimcbrown (admin) Aug 24, 2010
- 1551 views
Is there any way in EuGTK to put multiple windows on a window?
This should work the same way as for GTK in general.
5. Re: EuGTK - toplevel problem
- Posted by irv Aug 25, 2010
- 1454 views
No doubt there is another, better way to do what you want than by putting windows into windows. What is it you are trying to accomplish? Have a screenshot?
6. Re: EuGTK - toplevel problem
- Posted by Jerry_Story Aug 25, 2010
- 1443 views
No doubt there is another, better way to do what you want than by putting windows into windows. What is it you are trying to accomplish? Have a screenshot?
Actually, that's not what I wanted to do originally. I wanted to put boxes on a box and didn't see anything like wxEuphoria's add_sizer_to_sizer. But pack does that. I was just confused.