GNOME Bugzilla – Bug 314164
rotate_simple seems to be missing
Last modified: 2006-04-02 19:32:56 UTC
I seem to be the only person that has ever needed gdk_pixbuf_rotate_simple in pygtk, since that function is not provided in gtk.gdk.Pixbuf.
Created attachment 51115 [details] [review] adding method rotate_simple to gtk.gdk.Pixbuf this patch (against pygtk-2.7.3) makes the following example work (at least for me): import pygtk import gtk buf=gtk.gdk.pixbuf_new_from_file("test.png") buf=buf.rotate_simple(90) im=gtk.Image() im.set_from_pixbuf(buf) w=gtk.Window() w.connect("key-press-event",gtk.main_quit) w.add(im) w.show_all() gtk.main()
We're API frozen, so this has to wait until 2.10
Committed to CVS: Checking in ChangeLog; /cvs/gnome/gnome-python/pygtk/ChangeLog,v <-- ChangeLog new revision: 1.1390; previous revision: 1.1389 done Checking in gtk/gdk.defs; /cvs/gnome/gnome-python/pygtk/gtk/gdk.defs,v <-- gdk.defs new revision: 1.96; previous revision: 1.95 done