[hamster-applet] don't import applet when standalone windows are asked



commit 878cd913e33c43ed407700698a444152076157d9
Author: Toms Bauģis <toms baugis gmail com>
Date:   Thu Nov 19 12:08:25 2009 +0000

    don't import applet when standalone windows are asked

 hamster/hamster-applet.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hamster/hamster-applet.py b/hamster/hamster-applet.py
index 2e3c3ab..e4245d2 100755
--- a/hamster/hamster-applet.py
+++ b/hamster/hamster-applet.py
@@ -32,6 +32,7 @@ def applet_factory(applet, iid):
     applet.connect("destroy", on_destroy)
     applet.set_applet_flags(gnomeapplet.EXPAND_MINOR)
 
+    from hamster.applet import HamsterApplet    
     hamster_applet = HamsterApplet(applet)
 
     applet.show_all()
@@ -109,7 +110,6 @@ if __name__ == "__main__":
             if hasattr(module, 'bind_textdomain_codeset'):
                 module.bind_textdomain_codeset('hamster-applet','UTF-8')
         
-        from hamster.applet import HamsterApplet    
         gtk.window_set_default_icon_name("hamster-applet")
     
         if options.start_window or options.standalone:



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