view-changed events: add an observers interface
authorAndrew Chadwick <andrewc-git@piffle.org>
Sat, 2 Mar 2013 21:57:10 +0000 (21:57 +0000)
committerAndrew Chadwick <andrewc-git@piffle.org>
Sat, 2 Mar 2013 22:38:09 +0000 (22:38 +0000)
commit7c008b1bad39a020af1104be9b3c703f795ab8f8
treec1af932b124cb8697565e92f5ebde6e8a70e02b6
parent5a1ce998c2dabe275a0b0b0754fbef9cd497ba9d
view-changed events: add an observers interface

Allow interested parties to register callbacks for invocation when the main
viewport changes. Reimplement saved-view clearing as the first of these
callbacks. Remove filehandling saved-view clearing now that the usual
reset-view calls call the observer callbacks.
gui/canvasevent.py
gui/document.py
gui/filehandling.py