How do I make the gtk code work?
Posted
by Runner
on Stack Overflow
See other posts from Stack Overflow
or by Runner
Published on 2010-04-29T14:36:11Z
Indexed on
2010/04/29
15:27 UTC
Read the original article
Hit count: 347
vbox = gtk_vbox_new(FALSE, 0);
gtk_container_add(GTK_CONTAINER(window), vbox);
...
frame = gtk_fixed_new();
gtk_container_add(GTK_CONTAINER(window), frame);
...
The above code will generate the warning below:
Gtk-WARNING **: Attempting to add a widget with type GtkFixed to a GtkWindow, but as a GtkBin subclass a GtkWindow can only contain one widget at a time; it already contains a widget of type GtkVBox
Which results in frame
is not shown in the window.
How can I make both vbox
and frame
show?
© Stack Overflow or respective owner