tags:

views:

39

answers:

2

I wanna the hpaned to remember the slider position, then I need to catch the event of hpaned's changing slider position. According to official doc, paned only have a few signals, and none of them is about slider's position.

So, is there a event about hpaned's slider? And how to catch it?

A: 

You can connect to the size-allocate signal of one of the two children of the paned. The signal will be emitted after the slider's position has been changed.

Alexander Kojevnikov
If the child property "resize" is set to False, then the child will not be resized, hence size-allocate signal will not be emitted.
dmitry_vk
Makes sense, thanks Dmitry!
Alexander Kojevnikov
+2  A: 

You can connect to "notify::position" signal.

dmitry_vk
That's it, "notify::position" works
Raymond