afcb2fcea9623ec5e089c1cbabbe99374c603a24
Previously we were using a GdkPixmap [1] created with the get_snapshot [2] method of the Gtk.Widget. GTK 3 encourages to use cairo surfaces now instead. The ported mothod does create a cairo surface similar to that of the canvas' window and draws on that. Then we create a cairo image surface with the desired preview size and scale the canvas surface on that. Several people have been involved in this work: Gonzalo Odiard, Manuel Quiñones and Benjamin Berg. [1] http://developer.gnome.org/gdk/stable/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap [2] http://developer.gnome.org/gtk/stable/GtkWidget.html#gtk-widget-get-snapshot
Sugar is the core of the OLPC Human Interface. The toolkit provides a set of widgets to build HIG compliant applications and interfaces to interact with system services like presence and the datastore.
Description
Languages
Gettext Catalog
62.6%
Python
24.5%
C
12.3%
Makefile
0.3%
M4
0.3%