From 26d478b8732626c29a80347df66ebd1a520742be Mon Sep 17 00:00:00 2001 From: mbkma Date: Tue, 2 Mar 2021 19:28:51 +0100 Subject: rewrite mozo.ui from scratch --- Mozo/MainWindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Mozo/MainWindow.py') 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('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('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): -- cgit v1.2.1