gtk.check_version() checks the GTK version, not the pygtk version
This commit is contained in:
parent
3bac6caec3
commit
96c97295e1
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue