Mention cairo_save/restore in the ::draw migration docs

https://bugzilla.gnome.org/show_bug.cgi?id=646798
This commit is contained in:
Matthias Clasen 2012-05-26 13:45:06 -04:00
parent 9cca320a7f
commit d7550bb8fb

View File

@ -1001,7 +1001,8 @@ AM_CONDITIONAL(BUILD_x11, [test "x$have_x11" = "xyes"])
Another convenience function that can help when implementing
::draw for multi-window widgets is gtk_cairo_transform_to_window(),
which transforms a cairo context from widget-relative coordinates
to window-relative coordinates.
to window-relative coordinates. You may want to use cairo_save() and
cairo_restore() when modifying the cairo context in your draw function.
</para>
<para>
All GtkStyle drawing functions (gtk_paint_box(), etc) have been changed