[Glade-users] HScale, signals

axel axel.voges at freenet.de
Tue Feb 1 12:13:57 EST 2011


The documentation says, that this events means the release of a mouse 
button and need a 'release mask'. So it's maybe the wrong signal for my 
task.

Primarily, as I wrote, I need a signal that is issued, when the slider 
is/was released. What would you prefer?
And what is the difference between 'value_changed' and 'change_value' 
(under "GtkRange")?

Thank you,

Axel

Tristan Van Berkom schrieb:
> It should work to connect to the button-release-event.
>
> Did you check the callback signature and documentation
> for that signal in GTK+ ?
>
> If you return FALSE from that handler you allow the scale widget
> to also handle the button release, returning TRUE from that
> handler will "steal" the event so to speak.
>
> Cheers,
>       -Tristan
>
> On Sun, Jan 30, 2011 at 10:47 PM, axel <axel.voges at freenet.de> wrote:
>   
>> Hi,
>>
>> I use the hscale slider in a project. The used callback is
>> "on_xxx_value_changed". Now I found, that the callback is called every
>> time I move the slider. I need a signal that calls the callback only,
>> when slider is released at the end of moving. I've tried the
>> "button-release-event", but than the slider is always active, I can not
>> release it.
>>
>> Glade version 3.6.7
>> System: Linux Mint 8
>>
>> Any hints?
>>
>> Thanks,
>>
>> Axel
>> _______________________________________________
>> Glade-users maillist  -  Glade-users at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/glade-users
>>
>>     
>
>
>   


More information about the Glade-users mailing list