Re: gtk_widget_show_all



Owen Taylor wrote:

> Antonio Campos <acampos@ceronet.com> writes:
>
> > Reading GGAD Chapter 3, it says:
> >
> > "gtk_widget_show_all() recursively calls gtk_widget_show() on a
> > container and its children."
> >
> > So, a question arises: if gtk_widget_show_all() only works properly on
> > containers, this function should be defined in
> > gtkcontainer.h/gtkcontainer.c and should be
> > named gtk_container_show_all() rather than gtk_widget_show_all(), that
> > can be a little confusing for what I have said before.
> >
> > For example, if I call gtk_widget_show_all over a notebook, it doesn't
> > make the notebook labels ( or the pages ?) appear, as it could be
> > pseudo-deduced by the name.
> >
> > I propose removing gtk_widget_show_all() from gtkwidget.h/gtkwidget.c
> > and adding gtk_container_show_all() to gtkcontainer.h/gtkcontainer.c.
> > For compatibility, just add a:
> > #define gtk_widget_show_all    gtk_container_show_all
> >
> > in gtkcompat.h
> >
> > What do you GTKers think about this?
>
> I'm confused:
>
>  - gtk_widget_show_all() works fine on non-containers (it is
>    just equivalent to gtk_widget_show() in that case.)
>
>  - gtknotebook is a container!
>
> show_all on a notebook should show all the pages correctly -
> do you have an example where it doesn't?
>
> Regards,
>                                         Owen
>
> --
>          To unsubscribe: mail gtk-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.

Well, yes, maybe I am more confused than you, but I believe that
gtk_widget_show_all() in gtknotebooks doesn't show the notebook labels,
which it's a bit strange (but maybe only a lack of documentation about
which are the children of the notebook as a container).
By the way, another problem related to notebooks:
Putting eventboxes as labels of notebooks cause strange things. For example
when you press on the eventbox label, the label doesn't get selected.
Does anybody know if the notebook widget has or should have any technical
problems managing this correctly?



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