Commit 96c97295 authored by Yann Leboulanger's avatar Yann Leboulanger

gtk.check_version() checks the GTK version, not the pygtk version

parent 3bac6cae
......@@ -455,7 +455,7 @@ class add_contact_window:
class About_dialog:
"""Class for about dialog"""
def __init__(self, plugin):
if gtk.check_version(2, 6, 0):
if gtk.pygtk_version >= (2, 6, 0):
return
self.plugin = plugin
#xml.get_widget('logo_image').set_from_file('plugins/gtkgui/pixmaps/logo.png')
......
......@@ -752,7 +752,7 @@ class plugin:
def __init__(self, quIN, quOUT):
gtk.gdk.threads_init()
if not gtk.check_version(2, 6, 0):
if gtk.pygtk_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
......
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