brushmodifier: redo states using gtk.ToggleActions
authorAndrew Chadwick <andrewc-git@piffle.org>
Sat, 23 Jul 2011 22:42:20 +0000 (23:42 +0100)
committerAndrew Chadwick <andrewc-git@piffle.org>
Sun, 31 Jul 2011 14:16:52 +0000 (15:16 +0100)
commitc788c19ed455996a3ecb6a7637171cf4b7352f10
tree88088634500887904490a52dcd51ae07a72722cf
parent72a821fe8a264bd2928d3e82b333ba6f4362d43a
brushmodifier: redo states using gtk.ToggleActions

It's fiddly to have toolbar and menu toggleactions track the state of an
internal StateGroup's states, so rewrite brushmodifier using normal
gtk.Actions.

We now distingush between brushes that are dedicated eraser brushes and
ones which aren't when entering and leaving eraser mode.

This emulates a group of radio items, but since two of them can be
toggled off by clicking them or pressing their key, it makes sense for
them to be ToggleActions instead.
gui/brushmodifier.py
gui/document.py
gui/drawwindow.py
gui/stategroup.py
lib/brush.py