[gnome-todo] unscheduled-panel: add menu
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] unscheduled-panel: add menu
- Date: Wed, 1 Mar 2017 21:49:01 +0000 (UTC)
commit e53c48f18ffdb7b8ac063852e258f1e270c086ec
Author: Monica Baluna <monicamariabaluna gmail com>
Date: Thu Feb 16 01:54:29 2017 +0200
unscheduled-panel: add menu
The Today and Scheduled panels have a menu button that is not available in the
Unscheduled panel.
Add menu to the Unscheduled panel.
https://bugzilla.gnome.org/show_bug.cgi?id=778296
.../unscheduled-panel/__init__.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/unscheduled-panel/unscheduled-panel/__init__.py
b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
index b6c87ca..e832929 100644
--- a/plugins/unscheduled-panel/unscheduled-panel/__init__.py
+++ b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
@@ -48,6 +48,9 @@ class UnscheduledPanel(Gtk.Box, Gtd.Panel):
self.view.set_show_list_name(True)
self.view.set_handle_subtasks(False)
+ self.menu = Gio.Menu()
+ self.menu.append(_("Clear completed tasks…"), "list.clear-completed-tasks")
+
self.add(self.view)
self.show_all()
@@ -77,7 +80,7 @@ class UnscheduledPanel(Gtk.Box, Gtd.Panel):
return None
def do_get_menu(self):
- return None
+ return self.menu
def do_get_panel_name(self):
return "unscheduled-panel"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]