Clear messages on hide
authorDarren Worrall <daz@dwuk.net>
Thu, 18 Jun 2009 16:32:49 +0000 (17:32 +0100)
committerDarren Worrall <daz@dwuk.net>
Thu, 18 Jun 2009 16:32:49 +0000 (17:32 +0100)
gwibber/client.py

index a29ff9e..80579be 100644 (file)
@@ -520,6 +520,8 @@ class GwibberClient(gtk.Window):
         if hasattr(getattr(self, i), "parent") and getattr(self, i).parent.props.no_show_all:
             getattr(self, i).parent.set_property(
               "visible", self.preferences["show_%s" % i])
+            # If the tab isn't visible clear messages, better to see no data than stale data upon reveal
+            if not getattr(self, i).parent.props.visible : getattr(self, i).execute_script("clearMessages()")
       
     self.set_property("skip-taskbar-hint",
       self.preferences["hide_taskbar_entry"])