[Glade-users] SpinButton not 'spinning'

Peyman paskari007 at yahoo.ca
Wed Aug 26 18:12:23 EDT 2009


On 26 Aug 2009, at 20:50, Tristan Van Berkom wrote:

> On Wed, Aug 26, 2009 at 2:09 PM, Peyman<paskari007 at yahoo.ca> wrote:
>> I never picked up on this before, but the spin buttons work fine so
>> long as I don't attach any signals to them. This is always the case
>> regardless of whether libglade loads the spin buttons, or I create
>> them manually.
>>
>> I'm starting to think this has nothing to do with Adjustments at all.
>
> I see now. you are using libglade.
Yes
>
>
> This is a bug I was unaware of, quite easily fixable if its the case -
> and special case for libglade (using GtkBuilder - an association to an
> adjustment object must be made; making this seemingly a non-issue).
>
> So can I identify this bug as only a bug where the adjustment values
> are saved as default and thus not serialized when in libglade format ?
Not too sure what you are asking here, but maybe this will help. If I  
manually create the spinbuttons and the adjustments, and DO NOT  
connect them to any call backs, the spin buttons work. Alternatively,  
if, in Glade, I remove all the callback functions associated with the  
spinButtons, and then load them with libglade, the spinbuttons again  
work fine. Only when I connect the widgets to call back functions, in  
either case, do the spinbuttons 'freeze'. This is why I question the  
possibility that this has anything to do with Adjustments.
>
>
> this is what I am gathering from Tobias's input.
>
> Tobias, you also confirmed that min/max/value properties are  
> serialized
> in the correct order using 3.6.7 ? that is on a GtkAdjustment object  
> proper
> in GtkBuilder I assume ? (I really should double check that...).
>
> Cheers,
>         -Tristan

If you like, I can zip my file and send it to you.

Cheers


Peyman



More information about the Glade-users mailing list