billreminder r631 - trunk/src/gui
- From: ogmaciel svn gnome org
- To: svn-commits-list gnome org
- Subject: billreminder r631 - trunk/src/gui
- Date: Sat, 6 Sep 2008 17:08:46 +0000 (UTC)
Author: ogmaciel
Date: Sat Sep 6 17:08:46 2008
New Revision: 631
URL: http://svn.gnome.org/viewvc/billreminder?rev=631&view=rev
Log:
Added secondary form of opening url in case of failed dependency.
Modified:
trunk/src/gui/Changelog
trunk/src/gui/aboutdialog.py
Modified: trunk/src/gui/Changelog
==============================================================================
--- trunk/src/gui/Changelog (original)
+++ trunk/src/gui/Changelog Sat Sep 6 17:08:46 2008
@@ -1,3 +1,7 @@
+2008-09-06 Og Maciel <ogmaciel gnome org>
+
+ * aboutdialog.py: added secondary form of opening url in case of failed dependency.
+
2008-07-27 Og Maciel <ogmaciel gnome org>
* adddialog.py, prefdialog.py, maindialog.py: Mnemonic labels/widgets and HIG work.
Modified: trunk/src/gui/aboutdialog.py
==============================================================================
--- trunk/src/gui/aboutdialog.py (original)
+++ trunk/src/gui/aboutdialog.py Sat Sep 6 17:08:46 2008
@@ -4,14 +4,23 @@
import pygtk
pygtk.require('2.0')
+
import gtk
-from gnome import url_show
import lib.common as common
+
+# Internationalization
from lib import i18n
+try:
+ import gnome
+ def open_url(url): gnome.url_show(url)
+except:
+ import os
+ def open_url(url): os.system("xdg-open %s" % url)
+
TRANSLATORS = _("translator-credits")
-gtk.about_dialog_set_url_hook(lambda dialog, url, data: url_show(url), None)
+gtk.about_dialog_set_url_hook(lambda dialog, url, data: open_url(url), None)
class AboutDialog(gtk.AboutDialog):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]