diff options
author | C. Scott Ananian <cscott@cscott.net> | 2011-10-25 07:08:15 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2011-11-02 19:44:28 (GMT) |
commit | c91efbf665aad71b69d1f43196b57f01ad631a4e (patch) | |
tree | f0187280e255cec6eb6a940da012cb2831e56f0a /plugins/turtle_blocks_extras/turtle_blocks_extras.py | |
parent | b81f399d5c57465e95cca0fac241975bc75df303 (diff) |
Run automatic conversion to gtk3/gir.gtk3-precairo
This doesn't actually work under gtk3 yet, but it shouldn't break on gtk2.
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index c3f00b1..8013ea6 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import gtk +from util.gtkcompat import Gtk from time import time import os.path from gettext import gettext as _ @@ -994,7 +994,7 @@ bullets')) return pixbuf = None try: - pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(self.tw.lc.filepath, + pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(self.tw.lc.filepath, scale, scale) except: self.tw.showlabel('nojournal', self.tw.lc.filepath) |