Re: [gtk-list] show() vs. show_all()
- From: Havoc Pennington <hp Mcs Net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] show() vs. show_all()
- Date: Sun, 21 Feb 1999 22:13:56 -0600 (CST)
On 21 Feb 1999, Hrvoje Niksic wrote:
> What is the difference between calling gtk_widget_show_all() on a say
> top-level window, and using gtk_widget_show() on every widget
> descending from the window?
>
None to speak of. Maybe some trivial code size/speed tradeoff (like a
couple K vs. a few milliseconds...)
> I find that all the examples and documentation (including the
> tutorial) use the latter method, while I've been using the former in
> my new programs. Is there a subtle difference between a string of
> show()'s and a show_all()? Or, is it just a matter that show_all()
> wasn't always available?
>
Precisely. Older code will tend to use the manual version. Sometimes
there's a reason to avoid show_all(), perhaps if you want to leave some
of the children hidden.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]