mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[GTKUI] Remove About dialog unneeded url_hook
* This is removed in Gtk3 and clicking url in Gtk2 still works.
This commit is contained in:
parent
8ba8aec277
commit
243004c551
1 changed files with 1 additions and 4 deletions
|
@ -9,16 +9,13 @@
|
|||
|
||||
import gtk
|
||||
|
||||
from deluge.common import get_pixmap, get_version, open_url_in_browser
|
||||
from deluge.common import get_pixmap, get_version
|
||||
from deluge.ui.client import client
|
||||
from deluge.ui.gtkui.common import get_deluge_icon
|
||||
|
||||
|
||||
class AboutDialog(object):
|
||||
def __init__(self):
|
||||
def url_hook(dialog, url):
|
||||
open_url_in_browser(url)
|
||||
gtk.about_dialog_set_url_hook(url_hook)
|
||||
self.about = gtk.AboutDialog()
|
||||
self.about.set_position(gtk.WIN_POS_CENTER)
|
||||
self.about.set_name('Deluge')
|
||||
|
|
Loading…
Add table
Reference in a new issue