if we don't use pygtk2.6: no about dialog
This commit is contained in:
parent
9b54e1e7c9
commit
0c9a88e989
|
@ -455,6 +455,8 @@ class add_contact_window:
|
|||
class About_dialog:
|
||||
"""Class for about dialog"""
|
||||
def __init__(self, plugin):
|
||||
if gtk.check_version(2, 6, 0):
|
||||
return
|
||||
self.plugin = plugin
|
||||
#xml.get_widget('logo_image').set_from_file('plugins/gtkgui/pixmaps/logo.png')
|
||||
dlg = gtk.AboutDialog()
|
||||
|
|
|
@ -738,8 +738,9 @@ class plugin:
|
|||
|
||||
def __init__(self, quIN, quOUT):
|
||||
gtk.gdk.threads_init()
|
||||
gtk.about_dialog_set_email_hook(self.on_launch_browser_mailer, 'mail')
|
||||
gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url')
|
||||
if not gtk.check_version(2, 6, 0):
|
||||
gtk.about_dialog_set_email_hook(self.on_launch_browser_mailer, 'mail')
|
||||
gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url')
|
||||
self.queueIN = quIN
|
||||
self.queueOUT = quOUT
|
||||
self.send('REG_MESSAGE', 'gtkgui', ['ROSTER', 'WARNING', 'STATUS', \
|
||||
|
|
Loading…
Reference in New Issue