GNOME Bugzilla – Bug 742530
um-crop-area: Fix deprecated API usage
Last modified: 2015-01-07 15:41:28 UTC
These patches were made for g-c-c (see bug 740986) but they also apply to cheese.
Created attachment 294037 [details] [review] um-crop-area: Fix background rendering around the picture Instead of trying to fill the displayed pixbuf with the background color (and failing at that), just make the pixbuf be an aspect correct scaled size of the original picture and draw it at the correct offset on the draw vfunc. This allows us to get rid of deprecated gtk+ API usage and fixes the background around the picture ending up black despite de code's intent.
Created attachment 294038 [details] [review] um-crop-area: Enforce a minimum size Otherwise, if callers aren't careful, users could resize us so small that we'd crash inside gdk_pixbuf_scale() .
Created attachment 294039 [details] [review] um-crop-area: Fix deprecated API usage
Review of attachment 294037 [details] [review]: Go ahead.
Review of attachment 294038 [details] [review]: Go ahead.
Review of attachment 294039 [details] [review]: Go ahead.
Attachment 294037 [details] pushed as 8b5bc73 - um-crop-area: Fix background rendering around the picture Attachment 294038 [details] pushed as 08ff9ff - um-crop-area: Enforce a minimum size Attachment 294039 [details] pushed as 5741aa3 - um-crop-area: Fix deprecated API usage