This function provides an easy way to empty a GtkWindow
/GtkContainer
. I use it when i need to refresh a part of my app by replacing some widgets with others. It can destroy or preserve the child widgets depending on your needs.
This examples shows how to discover on your own what the
methods for a given widget are, from the actual current
implementation, instead of relying on documentation. You can
obviously use it to examine other classes, but this sample code
shows the methods of classes Gtk
and
GtkWindow
.
In addition, this example shows how to line up vertically
by the top the contents of panes in a GtkHBox
,
just like vertical-align
does in CSS. In this
example, we use it to align the two lists because they are of
very different lengths.
These examples show how to empty instances of classes derived from GtkContainer
.
Commentaires récents
il y a 5 an 39 semaines
il y a 5 an 40 semaines
il y a 5 an 40 semaines
il y a 5 an 43 semaines
il y a 6 an 11 semaines
il y a 6 an 15 semaines
il y a 6 an 19 semaines
il y a 6 an 19 semaines
il y a 6 an 19 semaines
il y a 6 an 36 semaines