Fix up calls to open_url_in_browser() because it's been moved to

deluge.common.
This commit is contained in:
Andrew Resch 2007-12-18 00:03:34 +00:00
parent 4d6e4b1a06
commit 473110b7fe
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,6 @@ def open_url_in_browser(url):
"""Opens link in the desktop's default browser"""
def start_browser():
import webbrowser
log.debug("Opening webbrowser with url: %s", url)
webbrowser.open(url)
return False

View File

@ -38,6 +38,7 @@ import pkg_resources
import deluge.component as component
import deluge.ui.client as client
import deluge.common as common
from deluge.log import LOG as log
@ -240,15 +241,15 @@ class MenuBar(component.Component):
## Help Menu ##
def on_menuitem_homepage_activate(self, data=None):
log.debug("on_menuitem_homepage_activate")
client.open_url_in_browser("http://deluge-torrent.org")
common.open_url_in_browser("http://deluge-torrent.org")
def on_menuitem_faq_activate(self, data=None):
log.debug("on_menuitem_faq_activate")
client.open_url_in_browser("http://deluge-torrent.org/faq.php")
common.open_url_in_browser("http://deluge-torrent.org/faq.php")
def on_menuitem_community_activate(self, data=None):
log.debug("on_menuitem_community_activate")
client.open_url_in_browser("http://forum.deluge-torrent.org/")
common.open_url_in_browser("http://forum.deluge-torrent.org/")
def on_menuitem_about_activate(self, data=None):
log.debug("on_menuitem_about_activate")