[pitivi] About: Implement clickable URL for website. Fixes #583514



commit 7b0969a454caf17bbebbf6161b84bd183c4b5915
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Sun May 24 12:11:30 2009 +0200

    About: Implement clickable URL for website. Fixes #583514
---
 pitivi/ui/mainwindow.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index c412a64..302c6a1 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -539,10 +539,15 @@ class PitiviMainWindow(gtk.Window, Loggable):
     def _aboutResponseCb(self, dialog, unused_response):
         dialog.destroy()
 
+    def _showWebsiteCb(self, dialog, uri):
+        import webbrowser
+        webbrowser.open_new(uri)
+
     def _aboutCb(self, unused_action):
         abt = gtk.AboutDialog()
         abt.set_name(APPNAME)
         abt.set_version("v%s" % pitivi_version)
+        gtk.about_dialog_set_url_hook(self._showWebsiteCb)
         abt.set_website("http://www.pitivi.org/";)
         authors = ["Edward Hervey <bilboed bilboed com>",
                    "Alessandro Decina <alessandro decina collabora co uk>",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]