[gnome-clocks] Remove useless namespacing



commit 6bddbdb7811c94d59566e22cb0325dd07e6a3020
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Dec 30 18:25:36 2012 +0100

    Remove useless namespacing

 gnome-clocks       |    4 ++--
 gnomeclocks/app.py |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-clocks b/gnome-clocks
index 68a41f7..fd4bcb5 100755
--- a/gnome-clocks
+++ b/gnome-clocks
@@ -21,10 +21,10 @@
 
 import signal
 import sys
-from gnomeclocks.app import ClocksApplication
+from gnomeclocks.app import Application
 
 if __name__ == "__main__":
-    app = ClocksApplication()
+    app = Application()
     # FIXME: Get rid of the following line which has the only purpose of
     # working around Ctrl+C not exiting Gtk applications from bug 622084.
     # https://bugzilla.gnome.org/show_bug.cgi?id=622084
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 54501ff..c2e854e 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -83,7 +83,7 @@ class Window(Gtk.ApplicationWindow):
         self.add(vbox)
         vbox.show()
 
-    def _on_new_activated(self):
+    def _on_new_activated(self, action, param):
         view = self.views[self.notebook.get_current_page()]
         view.activate_new()
 
@@ -132,7 +132,7 @@ class Window(Gtk.ApplicationWindow):
         about.show()
 
 
-class ClocksApplication(Gtk.Application):
+class Application(Gtk.Application):
     def __init__(self):
         Gtk.Application.__init__(self)
 



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