[postr/postr-0-12] Fixed the user info in the statusbar (#541321)



commit b8f6bc8fff8315828bac3a1052761157f1f9ada6
Author: Germán Póo-Caamaño <gpoo gnome org>
Date:   Wed Nov 4 18:39:52 2009 -0300

    Fixed the user info in the statusbar (#541321)
    
    Now if a flickr user does not have his or her full name
    associated, it will fall back with the user id.

 src/StatusBar.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/StatusBar.py b/src/StatusBar.py
index ac5479f..901bd71 100644
--- a/src/StatusBar.py
+++ b/src/StatusBar.py
@@ -39,10 +39,11 @@ class StatusBar(gtk.Statusbar):
             message = ""
 
         if self.flickr.get_username():
-            message = message + " - logged in as " + self.flickr.get_fullname() or self.flickr.get_username()
-        
+            name = self.flickr.get_fullname() or self.flickr.get_username()
+            message = message + " - logged in as " + name
+
         self.push(self.context, message)
-    
+
     def update_quota(self):
         """Call Flickr to get the current upload quota, and update the status bar."""
         def got_quota(rsp):



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