[meld] meldwindow: Add GAction for tab closing
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] meldwindow: Add GAction for tab closing
- Date: Sun, 1 May 2016 20:46:02 +0000 (UTC)
commit 778c8cc61bf61d6b193316ae98c708e3e74caa06
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Dec 13 06:04:32 2015 +1000
meldwindow: Add GAction for tab closing
meld/meldwindow.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index a4ce523..0fd46a5 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -206,6 +206,15 @@ class MeldWindow(gnomeglade.Component):
Gtk.STYLE_CLASS_PRIMARY_TOOLBAR)
self.toolbar_holder.pack_end(self.secondary_toolbar, False, True, 0)
+ # Manually handle GAction additions
+ actions = (
+ ("close", self.on_menu_close_activate, None),
+ )
+ for (name, callback, accel) in actions:
+ action = Gio.SimpleAction.new(name, None)
+ action.connect('activate', callback)
+ self.widget.add_action(action)
+
toolbutton = Gtk.ToolItem()
self.spinner = Gtk.Spinner()
toolbutton.add(self.spinner)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]