Re: What is a non-editable spinbutton?

"Matthias Clasen" <Matthias Clasen poet de> writes:

> > It was pointed out to me that currently a non-editable GtkSpinButton 
> > is inconsistent ... you can change its value using the mouse to
> > click on the buttons, but not with the keyboard.
> > 
> > Which way should it be? Is a non-editable spinbutton not editable
> > at all, or just not editable by editing the contents of the entry?
> > I suspect the second is more useful, though I think its basically
> > never right to make a spinbutton not-editable.
> A non-editable spinbutton should not be editable at all. If you need
> a spinbutton with a read-only entry, you should just make the entry
> readonly (though I don't know if gtkspinbutton has an api for that 
> short of poking in the widget internals). I can imagine readonly
> spinbuttons to make sense if they become readonly as part of changing
> some other settings in a larger dialog. 

Remember that GtkSpinButton _derives_ from GtkEntry, so there
is no sense that you could have a "read-only" entry distinct
froma "read-only" spinbutton.


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