[pitivi] About: Implement clickable URL for website. Fixes #583514
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] About: Implement clickable URL for website. Fixes #583514
- Date: Sun, 24 May 2009 06:12:42 -0400 (EDT)
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]