Commit 0c9a88e9 authored by Yann Leboulanger's avatar Yann Leboulanger

if we don't use pygtk2.6: no about dialog

parent 9b54e1e7
......@@ -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', \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment