[d-feet/fix-icon-name: 2/2] Remove unused DFeetWindow.package field



commit 55b5fad7dbc4f1d2854d08169ad876ae880d4bab
Author: Will Thompson <will willthompson co uk>
Date:   Wed Feb 21 16:01:31 2018 +0000

    Remove unused DFeetWindow.package field

 src/dfeet/application.py | 2 +-
 src/dfeet/window.py      | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/dfeet/application.py b/src/dfeet/application.py
index f16e7f2..a0cd917 100644
--- a/src/dfeet/application.py
+++ b/src/dfeet/application.py
@@ -17,7 +17,7 @@ class DFeetApp(Gtk.Application):
 
     # Note that the function in C activate() becomes do_activate() in Python
     def do_activate(self):
-        self._main_win = DFeetWindow(self, self.package, self.version, self.data_dir)
+        self._main_win = DFeetWindow(self, self.version, self.data_dir)
 
     # Note that the function in C startup() becomes do_startup() in Python
     def do_startup(self):
diff --git a/src/dfeet/window.py b/src/dfeet/window.py
index e1943e7..b8f98eb 100644
--- a/src/dfeet/window.py
+++ b/src/dfeet/window.py
@@ -35,9 +35,8 @@ class DFeetWindow(Gtk.ApplicationWindow):
 
     HISTORY_MAX_SIZE = 10
 
-    def __init__(self, app, package, version, data_dir):
+    def __init__(self, app, version, data_dir):
         Gtk.Window.__init__(self, application=app)
-        self.package = package
         self.version = version
         self.data_dir = data_dir
         self.session_bus = None


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