Skip to content

Instantly share code, notes, and snippets.

@vterron
Last active August 29, 2015 14:04
Show Gist options
  • Save vterron/26941770310c6556c924 to your computer and use it in GitHub Desktop.
Save vterron/26941770310c6556c924 to your computer and use it in GitHub Desktop.
Workaround for GTK+ bug 632538
#! /usr/bin/env python
import gtk
# Workaround for GTK+ bug 632538
if gtk.gtk_version < (2, 24, 19):
gtk.Button()
settings = gtk.settings_get_default()
settings.props.gtk_button_images = True
print "Success!"
import gtk
settings = gtk.settings_get_default()
settings.props.gtk_button_images = True
print "Success!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment