GNOME Bugzilla – Bug 627353
Convert all drawing to Cairo
Last modified: 2010-08-25 17:13:15 UTC
These patches get rid of the deprecated GDK drawing functions and use Cairo instead. Note that I tested the patches, but as I'm not sure what they are used for exactly I'd be happy if you could check them.
Created attachment 168279 [details] [review] Blit pixmap using Cairo
Created attachment 168280 [details] [review] Clear pixmap using Cairo
Created attachment 168281 [details] [review] Draw flag pixbuf using Cairo No complicated pixbuf scaling code needed anymore, Cairo does that automatically.
First 2 patches look ok to me. Could you please update the last patch so that it would only do scaling when necessary (see the variable scaling_needed)?
(2 patches are committed, thanks)
Created attachment 168640 [details] [review] Draw flag pixbuf using Cairo No complicated pixbuf scaling code needed anymore, Cairo does that automatically.
Comment on attachment 168281 [details] [review] Draw flag pixbuf using Cairo Updated the patch after discussion on IRC to remove the needs_scaling variable. Manual optimization of scaling is not needed as Cairo does it automatically.
I hate to tell you but your patch does not work when flags are enabled - I see nothing (tried gkbd-indicator-test).
Created attachment 168691 [details] [review] Draw flag pixbuf using Cairo No complicated pixbuf scaling code needed anymore, Cairo does that automatically.
Comment on attachment 168640 [details] [review] Draw flag pixbuf using Cairo A test program! Had I found that earlier... :) I forgot the sign in the last cairo_translate() call. Fixed with the newest patch.
Sweet! Committed, thank you!