[gnome-todo] unscheduled-panel: Add missed properties



commit e0080f5ce94cad4f90b78cc73a68d846a4e035ba
Author: Yi-Soo An <yisooan gmail com>
Date:   Mon Jul 30 15:30:39 2018 +0900

    unscheduled-panel: Add missed properties
    
    This patch is to add missed properties and an icon for the plugin.

 plugins/unscheduled-panel/unscheduled-panel/__init__.py | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/plugins/unscheduled-panel/unscheduled-panel/__init__.py 
b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
index 83148cd..decae8c 100644
--- a/plugins/unscheduled-panel/unscheduled-panel/__init__.py
+++ b/plugins/unscheduled-panel/unscheduled-panel/__init__.py
@@ -39,6 +39,10 @@ class UnscheduledPanel(Gtk.Box, Gtd.Panel):
     menu = GObject.Property(type=Gio.Menu, default=None)
     name = GObject.Property(type=str, default="unscheduled-panel")
     title = GObject.Property(type=str, default=_("Unscheduled"))
+    subtitle = GObject.Property(type=str, default=None)
+    priority = GObject.Property(type=int, default=0)
+    icon = GObject.Property(type=Gio.ThemedIcon, default=None)
+
 
     def __init__(self):
         Gtk.Box.__init__(self)
@@ -58,6 +62,8 @@ class UnscheduledPanel(Gtk.Box, Gtd.Panel):
         self.menu.append(_("Clear completed tasks…"),
                          "list.clear-completed-tasks")
 
+        self.icon = Gio.ThemedIcon.new("appointment-missed-symbolic")
+
         self.add(self.view)
         self.show_all()
 
@@ -94,6 +100,9 @@ class UnscheduledPanel(Gtk.Box, Gtd.Panel):
     def do_get_menu(self):
         return self.menu
 
+    def do_get_priority(self):
+        return self.priority
+
     def do_get_panel_name(self):
         return "unscheduled-panel"
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]