Commit 9dcde2a2 authored by Colomban Wendling's avatar Colomban Wendling

Fix undo support with older GI

parent 14711cf1
......@@ -161,14 +161,11 @@ class UndoableStore(Gtk.ListStore):
Gtk.ListStore.__init__(self, *args, **kwargs)
self._save()
def do_row_changed(self, path, iter):
self._save()
def do_row_deleted(self, path):
self._save()
def do_row_inserted(self, path, iter):
self._save()
def on_model_changed(model, path, iter=None, data=None):
self._save()
self.connect('row-changed', on_model_changed)
self.connect('row-deleted', on_model_changed)
self.connect('row-inserted', on_model_changed)
def _save(self):
# don't save state when restoring it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment