[Java-gnome-developer] signal questions
Brought to you by:
afcowie
From: Lars W. <la...@di...> - 2006-03-01 01:34:45
|
Hi everyone! Two questions related to signals/listeners: 1) What am I supposed to do if I want to get notified of position changes of the handle in a Paned widget? Connecting handlers to the check_resize, move_handle or accept_position signals in Glade doesn't seem to work here and neither does adding a ContainerListener that tests for CHECK_RESIZE events. 2) For TreeSelections, does anyone know of a clean way to get more detailed information on what kind of user action changed the selection (that is, in addition to the fact *that* it changed)? The problem is that I'd like to differentiate between replace actions (simple click) and add/remove actions (Ctrl-click). (Comparing the selection after each change wouldn't always work since I need to differenciate the two actions even in situations where there was previously no item selected.) Is manually testing whether the Control-key was pressed during selection the only/correct way to do it? Thanks in advance for any suggestions! Regards, Lars |