+# ************************* OPTIONS ********************************
+
+ def show_options(self, widget):
+ dialog = gtk.Dialog("Comic Widget", None, gtk.DIALOG_DESTROY_WITH_PARENT)
+
+ about_button = hildon.Button(gtk.HILDON_SIZE_AUTO_WIDTH | gtk.HILDON_SIZE_FINGER_HEIGHT, hildon.BUTTON_ARRANGEMENT_VERTICAL)
+ about_button.set_text("About", "See Author, Copyright and License information")
+ about_button.set_alignment(0,0,0,0)
+ about_button.connect("clicked", self.show_about)
+
+ dialog.vbox.pack_start(about_button, True, True, 0)
+
+ dialog.show_all()
+ dialog.run()
+ dialog.destroy()
+
+ def show_about(self, widget):
+ dialog = gtk.AboutDialog()
+ dialog.set_title("About")
+ dialog.set_name("Comic widget")
+ dialog.set_version(APP_VERSION)
+ dialog.set_copyright("Copyright 2010 Marcus Wikstrom")
+ dialog.set_authors(["Marcus Wikstrom <mece@ovi.com>\n\nSpecial thanks to Benoit Hervier, Daniel Would and Brent Chiodo\nfor some nice code to sample."])
+ # dialog.set_logo(gtk.gdk.pixbuf_new_from_file("/usr/share/touchsearch/icon.png"))
+ # dialog.set_comments("Thanks to Benoit Hervier, Daniel Would and Brent Chiodo for some nice code to sample.")
+ dialog.set_license("""This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License. <http://www.gnu.org/licenses/>.""")
+ dialog.set_wrap_license(True)
+ dialog.show_all()
+ dialog.run()
+ dialog.destroy()
+