<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'># HG changeset patch<br># User K. Arvanitis <<a href="mailto:kosta@alumni.uvic.ca">kosta@alumni.uvic.ca</a>><br># Date 1421987406 28800<br># Thu Jan 22 20:30:06 2015 -0800<br># Node ID 515b59115b7f0ef1f34606373844693b2b888843<br># Parent b25606106a9c0cd78f3cc5f602475da64cde081d<br>[PATCH] Fix Link in About Dialog<BR>The URL link in the about dialog is now functional. Tested in both<br>Ubuntu and Windows 8.1, verified working.<BR>Replaced the MessageBox dialog for the 'Documentation' help menu item<br>with a hotlink to the website. The URL link in the MessageBox was non-<br>functional on Windows and overall it did not provide much information<br>outside of the link anyhow.<BR>Bug #330<BR>diff -r b25606106a9c -r 515b59115b7f chirpui/mainapp.py<br>--- a/chirpui/mainapp.py Wed Jan 21 23:30:19 2015 -0800<br>+++ b/chirpui/mainapp.py Thu Jan 22 20:30:06 2015 -0800<br>@@ -17,6 +17,7 @@<br> import os<br> import tempfile<br> import urllib<br>+import webbrowser<br> from glob import glob<br> import shutil<br> import time<br>@@ -1177,9 +1178,12 @@<br> ".".join([str(x) for x in gtk.pygtk_version]),<br> sys.version.split()[0])<br> <br>+ # Set url hook to handle user activating a URL link in the about dialog<br>+ gtk.about_dialog_set_url_hook(lambda dlg, url: webbrowser.open(url))<br>+<br> d.set_name("CHIRP")<br> d.set_version(CHIRP_VERSION)<br>- d.set_copyright("Copyright 2013 Dan Smith (KK7DS)")<br>+ d.set_copyright("Copyright 2015 Dan Smith (KK7DS)")<br> d.set_website("<a href="http://chirp.danplanet.com">http://chirp.danplanet.com</a>")<br> d.set_authors(("Dan Smith KK7DS <<a href="mailto:dsmith@danplanet.com">dsmith@danplanet.com</a>>",<br> _("With significant contributions from:"),<br>@@ -1206,19 +1210,7 @@<br> d.destroy()<br> <br> def do_documentation(self):<br>- d = gtk.MessageDialog(buttons=gtk.BUTTONS_OK, parent=self,<br>- type=gtk.MESSAGE_INFO)<br>-<br>- d.set_markup("<b><big>" + _("CHIRP Documentation") + "</big></b>\r\n")<br>- msg = _("Documentation for CHIRP, including FAQs, and help for common "<br>- "problems is available on the CHIRP web site, please go to\n\n"<br>- "<a href=\"<a href="http://chirp.danplanet.com/projects/chirp/wiki/">http://chirp.danplanet.com/projects/chirp/wiki/</a>"<br>- "Documentation\">"<br>- "<a href="http://chirp.danplanet.com/projects/chirp/wiki/">http://chirp.danplanet.com/projects/chirp/wiki/</a>"<br>- "Documentation</a>\n")<br>- d.format_secondary_markup(msg.replace("\n","\r\n"))<br>- d.run()<br>- d.destroy()<br>+ webbrowser.open("<a href="http://chirp.danplanet.com/projects/chirp/wiki/Documentation">http://chirp.danplanet.com/projects/chirp/wiki/Documentation</a>")<br> <br> def do_columns(self):<br> eset = self.get_current_editorset()<br> <BR>                                            </div></body>
</html>