[hamster-applet] don't exit if we have the main window open (this will need some more work)



commit 76d275c8fd685a0c3c59f08698b2764df537a301
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Aug 4 17:46:40 2010 +0100

    don't exit if we have the main window open (this will need some more work)

 src/hamster-time-tracker |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/hamster-time-tracker b/src/hamster-time-tracker
index c36c80c..d81cd3f 100755
--- a/src/hamster-time-tracker
+++ b/src/hamster-time-tracker
@@ -457,19 +457,19 @@ class WindowServer(dbus.service.Object):
             self.app = ProjectHamster()
 
     @dbus.service.method("org.gnome.Hamster.WindowServer")
-    def edit(self): dialogs.edit.show()
+    def edit(self): dialogs.edit.show(self.app)
 
     @dbus.service.method("org.gnome.Hamster.WindowServer")
-    def overview(self): dialogs.overview.show()
+    def overview(self): dialogs.overview.show(self.app)
 
     @dbus.service.method("org.gnome.Hamster.WindowServer")
-    def about(self): dialogs.about.show()
+    def about(self): dialogs.about.show(self.app)
 
     @dbus.service.method("org.gnome.Hamster.WindowServer")
-    def statistics(self): dialogs.stats.show()
+    def statistics(self): dialogs.stats.show(self.app)
 
     @dbus.service.method("org.gnome.Hamster.WindowServer")
-    def preferences(self): dialogs.prefs.show()
+    def preferences(self): dialogs.prefs.show(self.app)
 
 
 if __name__ == "__main__":



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