Re: gtk_ctree_is_visible()



Tim Janik <timj@gtk.org> writes:

> On Thu, 6 Aug 1998, Lars Hamann wrote:
> 
> > Hi Tim!
> > 
> > On 06-Aug-98 Tim Janik wrote:
> > 
> > > i think the name of gtk_ctree_is_visible() should better be changed
> > > to gtk_ctree_node_expanded(), since that is what it actually returns
> > > (including the parents, so gtk_ctree_node_fully_expanded() would also
> > > be an option).
> > 
> > No, not really. gtk_ctree_is_visible returns TRUE if all of nodes parents
> > are expanded, i.e. if gtk_ctree_is_visible (node) == TRUE then node actually
> > is in GTK_CLIST (ctree)->row_list.
> > I would expect gtk_ctree_node_expanded to return GTK_CTREE_ROW (node)->expanded.
> 
> hm, what about _fully_expanded() or is_listed() or something like that then?
> 
> [owen, what about your ever-so-good-function-name-ideas? ;)]

How about:

 gtk_ctree_is_viewable()

It perhaps is not completely clear what it does without looking
at the docs, but it is distinct from is_visible() and "viewable"
here means exactly what it does in X.

(A "viewable" window in X is a window where the window and all of
its ancestors are mapped, whether or not the window is actually 
obscured or offscreen)

Regards,
                                        Owen



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