From b83d2f13b72927de51c281f73148f567c7345d2e Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 5 Sep 2005 20:25:33 +0000 Subject: [PATCH] do not issue deprecate warning for Gtk28 --- src/cell_renderer_image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cell_renderer_image.py b/src/cell_renderer_image.py index 96546ca4a..4c5255fdd 100644 --- a/src/cell_renderer_image.py +++ b/src/cell_renderer_image.py @@ -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) or gtk.pygtk_version < (2, 8, 0): + gobject.type_register(CellRendererImage)