guile-gtk-general
[Top][All Lists]
Advanced

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

Re: treeview - gtk-cell-renderer-spin - 2 problems


From: David Pirotte
Subject: Re: treeview - gtk-cell-renderer-spin - 2 problems
Date: Thu, 25 Jul 2013 15:41:44 -0300

Hello,

I slightly improved the example I sent because I forgot to mention that the
<gtk-spin-button> appears to work better then the renderer _but_ not always [I 
am
talking about the value it stores and gives back, the spin itself always 
respects
its 'contract': a float rounded to the tenth, between 0.0 and 100.0].

To convince yourself of the 'problem', you may press the up-arrow, page-up,
down-arrow page-down until it reaches values that shows the problem.

Cheers,
David

;; --

Le Wed, 24 Jul 2013 17:35:16 -0300,
David Pirotte <address@hidden> a écrit :

> Hello guilers,
> guile-gnomers,
> 
>       guile-gnome from git - the latest
>       GNU Guile 2.0.9.20-10454
> 
> So far i did render floats myself, using text renderer, mono space right
> justified ... because i could never make the <gtk-cell-renderer-spin> 
> correctly
> display the number of decimals i wanted.
> 
> I'd like to see if it possible to solve this problem, so i built a small 
> example to
> play with. As you can see there are 2 problems.
> 
> 1-    the renderer does not implement the digits i am passing (line 35);
> 2-    the values it stores and give back are not [exactly] the values i am
> given (lines 64, 65).
> 
>       [i also tried to define and use an adjustment, but it does not change 
> the
>       fact that the renderer fails to display the right digit number it 
> receives]
> 
> Hints/debug suggestions welcome,
> David

Attachment: gtk-cell-renderer-spin-digits-prob.scm
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]