summaryrefslogtreecommitdiff
path: root/Mozo
diff options
context:
space:
mode:
authormbkma <[email protected]>2021-03-02 19:28:51 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2021-03-03 12:26:06 +0100
commit26d478b8732626c29a80347df66ebd1a520742be (patch)
treeea2edd310736fe7cdbb1e01c6141221029d2eaed /Mozo
parent6a834d2a5462c2c0e6e5af9b552f7db5d857bd56 (diff)
downloadmozo-26d478b8732626c29a80347df66ebd1a520742be.tar.bz2
mozo-26d478b8732626c29a80347df66ebd1a520742be.tar.xz
rewrite mozo.ui from scratch
Diffstat (limited to 'Mozo')
-rw-r--r--Mozo/MainWindow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py
index 23db1bd..920f175 100644
--- a/Mozo/MainWindow.py
+++ b/Mozo/MainWindow.py
@@ -72,9 +72,9 @@ class MainWindow:
self.tree.get_object('delete_button').set_sensitive(False)
accelgroup = Gtk.AccelGroup()
keyval, modifier = Gtk.accelerator_parse('<Ctrl>Z')
- accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_mainwindow_undo)
+ accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_undo_button_clicked)
keyval, modifier = Gtk.accelerator_parse('<Ctrl><Shift>Z')
- accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_mainwindow_redo)
+ accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_redo_button_clicked)
keyval, modifier = Gtk.accelerator_parse('F1')
accelgroup.connect(keyval, modifier, Gtk.AccelFlags.VISIBLE, self.on_help_button_clicked)
self.tree.get_object('mainwindow').add_accel_group(accelgroup)
@@ -618,10 +618,10 @@ class MainWindow:
elif isinstance(item, MateMenu.TreeSeparator):
self.editor.moveSeparator(item, item.get_parent(), after=after)
- def on_mainwindow_undo(self, *_args):
+ def on_undo_button_clicked(self, *_args):
self.editor.undo()
- def on_mainwindow_redo(self, *_args):
+ def on_redo_button_clicked(self, *_args):
self.editor.redo()
def on_help_button_clicked(self, *_args):