call type_register only if needed [2.8+ does not need it]

This commit is contained in:
Nikos Kouremenos 2005-09-04 16:28:52 +00:00
parent 8459e3995f
commit 12d91afaf2
1 changed files with 2 additions and 1 deletions

View File

@ -121,4 +121,5 @@ class CellRendererImage(gtk.GenericCellRenderer):
self.get_property('ypad'))
return x_offset, y_offset, calc_width, calc_height
gobject.type_register(CellRendererImage)
if gtk.gtk_version < (2, 8, 0) and gtk.pygtk_version < (2, 8, 0):
gobject.type_register(CellRendererImage)