- def show_info(self, widget, kind):
- if kind == 'license':
- self.action_btn.hide()
- self.image.hide()
- info = """<small><b>StockThis</b> is free software. It's using a GPL version 2 license or at your election any later version.
-
-Logo by Daniel Martin Yerga.
-</small>"""
- elif kind == 'credits':
- self.action_btn.hide()
- self.image.hide()
- info = """<small><b>Written by</b> Daniel Martin Yerga (dyerga@gmail.com)
-
-<b>Thanks</b> to everyone who has reported bugs, suggestions, giving spirits, critiques, writing blog articles about StockThis, and so on. Like always the list is extremely big and for not forget anybody, THANKS TO ALL!</small>"""
- elif kind == 'description':
- self.action_btn.hide()
- self.image.hide()
- info = """<b><big>StockThis 0.3</big></b>
-
-<i>StockThis is a stocks application for Maemo</i>
-
-<b>Web Page</b>:
-stockthis.garage.maemo.org"""
-
- elif kind == 'donate':
- self.action_btn.show()
- self.image.hide()
- self.action_btn.set_title('Make donation')
- if self.id:
- self.action_btn.disconnect(self.id)
- self.id = self.action_btn.connect("clicked", self.do_action, "donate")
- info = """<small><b>StockThis</b> is a free (and gratis) software application.
-Developing good software takes time and hard work.
-
-<b>StockThis's author</b> develops the program in his spare time.
-If you like the program and it's helpful, consider donating a small amount of money.
-Donations are a great incentive and help the developer feel that the hard work is appreciated.</small>
-"""
- elif kind == 'report':
- self.action_btn.show()
- self.image.hide()
- self.action_btn.set_title('Report bug')
- if self.id:
- self.action_btn.disconnect(self.id)
- self.id = self.action_btn.connect("clicked", self.do_action, "report")
- info = """<small>StockThis is being improved thanks to bug reports that users have submitted. The author appreciates these reports.
-If the application is raising an error when you're using it, you have two choices to report this error:
-1) Send the log from the application menu (if there's an error in the log).
-2) Press the button and write a bug report with as much information as possible.</small>"""
- elif kind == 'vote':
- self.action_btn.show()
- self.image.show()
- self.image.set_from_file(imgdir + "maemoorg.png")
- self.action_btn.set_title('Rate StockThis')
- if self.id:
- self.action_btn.disconnect(self.id)
- self.id = self.action_btn.connect("clicked", self.do_action, "vote")
- info = """<small>The downloads section in maemo.org has a nice system where you can rate applications.
-If you consider StockThis a good application (or a bad one too), you could rate it in maemo.org site.</small>"""
-
- self.info_lb.set_markup(info)