Re: Best place to call gtk_widget_show()?



Hi Markus,
Markus Lausser wrote:
Hello,

I wonder, in which order should the following tasks be done:
* show widget
* add widget to parent container
* add childs to widget

Which order is the fastest (CPU)?

First add childs, then show? First show then add to parent? etc...
Or maybe call gtk_widget_show_all() for the toplevel only?

Does anyone know something about that?

I never measured, but I just build the whole widget tree and then call _show_all(). Apart from beeing the easiest way, I also belive its most efficient.

Stefan



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