Re: GtkSpinButton in GtkTreeViewColumn?



Hi,

maurits rijk philips com writes:

> I was just wondering if it would be possible to have a GtkSpinButton 
> inside a GtkTreeViewColumn. As far as I can see from the documentation and 
> the source code it's possible to render a column with GtkCellRendererText 
> and make it editable, but that will always create a GtkEntry widget in the 
> cell you want to edit. I would like to have a GtkSpinButton for numerical 
> cells. For example, I have a GtkTreeView that contains (x, y) coordinates 
> I'd like to edit.

you'll have to write your own CellRenderer widget. Shouldn't be overly
difficult since you can inherit most functionality from GtkCellRenderer.


Salut, Sven



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