Re: [gtk-list] [PATCH] toolbar and entry



On Mon, 12 Jan 1998, Paolo Molaro wrote:

> This exposes a bug/feature in the toolbar: all of the children
> have the same size (that is the max size of a widget in the toolbar).
> This was intended to nicely layout buttons, but we don't want to
> limit the toolbar to buttons (hey, think of a word processor toolbar!).
> Neverless we still want the *buttons* in the toolbar to have the same 
> size: I suggest the requisition and allocation functions check the
> type of the child widget and make it the same size if it's derived
> from "GtkButton". I haven't implemented this yet. Any comments?

Sounds like a bad idea, IMO. Any object descended from GtkButton would
trigger this, even if it isn't remotely like a normal button.

I'm afraid something manual would make a little more sense (although the
isa-GtkButton trick might make an acceptable default). Perhaps a number to
indicate which "group" a child is in (all objects in a group would be
constrained to the same size.)

Or, change priorities a bit, and just insert the combo box (or whatever
else you want) into the parent of the toolbar, instead of the toolbar
itself.

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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