Mercurial > code > home > repos > light9
changeset 972:92bffc402b52
bring back the ability to redraw canvases, since they still get mangled coords sometimes
Ignore-this: 47f204ec83dab79265091c9fae2c4860
author | drewp@bigasterisk.com |
---|---|
date | Sat, 15 Jun 2013 21:24:15 +0000 |
parents | 0306149044d3 |
children | 69885b86ff44 |
files | bin/curvecalc light9/curvecalc/curvecalc.glade |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/curvecalc Sat Jun 15 20:25:14 2013 +0000 +++ b/bin/curvecalc Sat Jun 15 21:24:15 2013 +0000 @@ -178,6 +178,9 @@ if dialog.run() == 1: self.curveset.new_curve(entry.get_text()) dialog.hide() + + def onRedrawCurves(self, *args): + dispatcher.send("all curves rebuild") def onSubtermsMap(self, *args): # if this was called too soon, like in __init__, the gtktable
--- a/light9/curvecalc/curvecalc.glade Sat Jun 15 20:25:14 2013 +0000 +++ b/light9/curvecalc/curvecalc.glade Sat Jun 15 21:24:15 2013 +0000 @@ -207,6 +207,16 @@ <property name="use_underline">True</property> </object> </child> + <child> + <object class="GtkMenuItem" id="menuitem17"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="use_action_appearance">False</property> + <property name="label" translatable="yes">Redraw curves</property> + <property name="use_underline">True</property> + <signal name="activate" handler="onRedrawCurves" swapped="no"/> + </object> + </child> </object> </child> </object>