[meld/ui-next] meldwindow: Clean up some actions + callbacks
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/ui-next] meldwindow: Clean up some actions + callbacks
- Date: Sat, 23 Mar 2019 02:02:52 +0000 (UTC)
commit c4c9b6f3aa04453266760ca52408712125db37e5
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Mar 1 11:26:59 2019 +1000
meldwindow: Clean up some actions + callbacks
meld/meldwindow.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index b72f78c5..b8157a60 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -74,7 +74,7 @@ class MeldWindow(Gtk.ApplicationWindow):
state_actions = (
(
- "fullscreen", self.on_action_fullscreen_change_state,
+ "fullscreen", self.action_fullscreen_change,
GLib.Variant.new_boolean(False)
),
)
@@ -231,7 +231,7 @@ class MeldWindow(Gtk.ApplicationWindow):
page = self.notebook.get_nth_page(i)
page.on_delete_event()
- def on_action_fullscreen_change_state(self, action, state):
+ def action_fullscreen_change(self, action, state):
window_state = self.get_window().get_state()
is_full = window_state & Gdk.WindowState.FULLSCREEN
action.set_state(state)
@@ -240,13 +240,9 @@ class MeldWindow(Gtk.ApplicationWindow):
elif is_full:
self.unfullscreen()
- def on_menu_edit_down_activate(self, *args):
- self.current_doc().next_diff(Gdk.ScrollDirection.DOWN)
-
- def on_menu_edit_up_activate(self, *args):
- self.current_doc().next_diff(Gdk.ScrollDirection.UP)
-
def action_stop(self, *args):
+ # TODO: This is the only window-level action we have that still
+ # works on the "current" document like this.
self.current_doc().action_stop()
def page_removed(self, page, status):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]