Skip widget pixbuf generation for older gtks, not newer ones

This commit is contained in:
Chris Jones 2010-02-04 01:00:35 +00:00
parent 15ea22b4ff
commit 102463acb3
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def shell_lookup():
def widget_pixbuf(widget, maxsize=None): def widget_pixbuf(widget, maxsize=None):
"""Generate a pixbuf of a widget""" """Generate a pixbuf of a widget"""
if gtk.gtk_version > (2, 14): if gtk.gtk_version < (2, 14):
return(None) return(None)
pixmap = widget.get_snapshot() pixmap = widget.get_snapshot()