def __init__(self, server, logo=""): StatusIcon.__init__(self) self.set_from_file(file("img/logos/OrchardLogo%s.svg" % logo)) self.set_tooltip("Orchard Server") self.server = server self.connect("activate", self.leftclick) self.connect("popup-menu", self.rightclick)
def about(self, *args): dialog = gtk.AboutDialog() dialog.set_program_name("Orchard") dialog.set_version("0.3") dialog.set_website("http://github.com/campadrenalin/ConcurrenTree") dialog.set_website_label("ConcurrenTree library on Github") dialog.set_comments("""Orchard is an implementation of the evolving concurrent text standard, ConcurrenTree. It's under active development right now, expect broken pieces and jagged edges. """.replace("\t","").replace('\n', '')) dialog.set_authors(["Philip Horger <*****@*****.**>","Nathaniel Abbots"]) dialog.set_logo(gtk.gdk.pixbuf_new_from_file(file("img/logos/OrchardBigLogo.svg"))) def response(d, gint): d.destroy() dialog.connect("response", response) dialog.show()