GNOME Bugzilla – Bug 579643
modifier keys not reset when focus change
Last modified: 2009-05-01 11:55:52 UTC
if you alt tab with a modifier key pressed at the same time this modifier key stays as pressed even if released when meld had not the focus. Steps to reproduce: - open file diff - press shift (see the linkmap buttons change) - keeping shift, press alt-tab - release shift - refocus meld - see the linkmap buttons still in shift mode The debian bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470781 is about the ALT (SHIFT does that here) modifier for unsynchronized scrolling
Created attachment 132979 [details] [review] fix for the bug
Created attachment 132981 [details] [review] dependency of the previous patch (extract linkmap button update code)
Looks good. You don't need the melddoc variable though as there is already a back pointer to the python objects from the top level glade widget. See widget.set_data("pyobject") in gnomeglade.
Created attachment 133614 [details] [review] this time without adding a backreference, just use the already present one