After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 314164 - rotate_simple seems to be missing
rotate_simple seems to be missing
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gtk
0.6.x
Other All
: Normal enhancement
: pygtk-2.10
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-22 12:34 UTC by Karel Vervaeke
Modified: 2006-04-02 19:32 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
adding method rotate_simple to gtk.gdk.Pixbuf (225 bytes, patch)
2005-08-22 12:38 UTC, Karel Vervaeke
none Details | Review

Description Karel Vervaeke 2005-08-22 12:34:39 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.
Comment 1 Karel Vervaeke 2005-08-22 12:38:42 UTC
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()
Comment 2 Johan (not receiving bugmail) Dahlin 2005-08-22 12:59:57 UTC
We're API frozen, so this has to wait until 2.10
Comment 3 Johan (not receiving bugmail) Dahlin 2006-04-02 19:32:56 UTC
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