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

This commit is contained in:
Yann Leboulanger 2005-03-14 21:51:25 +00:00
parent 3bac6caec3
commit 96c97295e1
2 changed files with 2 additions and 2 deletions

View File

@ -455,7 +455,7 @@ class add_contact_window:
class About_dialog: class About_dialog:
"""Class for about dialog""" """Class for about dialog"""
def __init__(self, plugin): def __init__(self, plugin):
if gtk.check_version(2, 6, 0): if gtk.pygtk_version >= (2, 6, 0):
return return
self.plugin = plugin self.plugin = plugin
#xml.get_widget('logo_image').set_from_file('plugins/gtkgui/pixmaps/logo.png') #xml.get_widget('logo_image').set_from_file('plugins/gtkgui/pixmaps/logo.png')

View File

@ -752,7 +752,7 @@ class plugin:
def __init__(self, quIN, quOUT): def __init__(self, quIN, quOUT):
gtk.gdk.threads_init() 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_email_hook(self.on_launch_browser_mailer, 'mail')
gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url') gtk.about_dialog_set_url_hook(self.on_launch_browser_mailer, 'url')
self.queueIN = quIN self.queueIN = quIN