开发者

How to be informed when gtk.paned slider's position changed?

开发者 https://www.devze.com 2022-12-13 04:59 出处:网络
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开发者_如何学Go signals, and n

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开发者_如何学Go signals, and none of them is about slider's position.

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


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


notify::position fires multiple times as the slider is moved.

I find button-release-event is more efficient.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消