1. EuGTK - toplevel problem

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 widget 
No 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?

new topic     » topic index » view message » categorize

2. Re: EuGTK - toplevel problem

Jerry_Story said...

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 widget 
No 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.

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGTK - toplevel problem

jimcbrown said...
Jerry_Story said...

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 widget 
No 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?

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGTK - toplevel problem

Jerry_Story said...

Is there any way in EuGTK to put multiple windows on a window?

This should work the same way as for GTK in general.

new topic     » goto parent     » topic index » view message » categorize

5. Re: EuGTK - toplevel problem

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?

new topic     » goto parent     » topic index » view message » categorize

6. Re: EuGTK - toplevel problem

irv said...

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu