/[ascend]/trunk/pygtk/gtkbrowser.py
ViewVC logotype

Diff of /trunk/pygtk/gtkbrowser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 904 by johnpye, Thu Oct 26 00:49:42 2006 UTC revision 905 by johnpye, Thu Oct 26 00:58:49 2006 UTC
# Line 1079  class Browser: Line 1079  class Browser:
1079    
1080      def on_help_check_for_updates_click(self,*args):      def on_help_check_for_updates_click(self,*args):
1081          v = VersionCheck()          v = VersionCheck()
         v.check()  
1082          title = "Check for updates"          title = "Check for updates"
1083          text = "Your version is %s\n" % config.VERSION          text = "Your version is %s\n" % config.VERSION
1084          text += "Latest version is %s\n" % v.latest          try:
1085          if v.info:              v.check()
1086              text += "Get more info at %s\n" % v.info              text += "Latest version is %s\n" % v.latest
1087          if v.download:              if v.info:
1088              text += "Download from %s\n" % v.download                  text += "Get more info at %s\n" % v.info
1089                if v.download:
1090                    text += "Download from %s\n" % v.download
1091            except Exception, e:
1092                text += "\nUnable to check version\n"
1093                text += str(e)
1094    
1095          _dialog = InfoDialog(self,self.window,text,title)          _dialog = InfoDialog(self,self.window,text,title)
1096          _dialog.run()          _dialog.run()

Legend:
Removed from v.904  
changed lines
  Added in v.905

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22