GNOME Bugzilla – Bug 789840
gnome-bg: Add new GdkRGBA methods to replace deprecated GdkColor methods
Last modified: 2018-01-30 20:20:36 UTC
Add new GdkRGBA methods to replace deprecated GdkColor methods. This allows G-C-C to drop the use of GdkColor (bug 788205)
Created attachment 362862 [details] [review] gnome-bg: Add new GdkRGBA methods to replace deprecated GdkColor methods
Review of attachment 362862 [details] [review]: I'd rather we removed the GdkColor usage altogether. As far as I know, this should only impact gnome-control-center (with calls to gnome_bg_set_color()).
Created attachment 363764 [details] [review] gnome-bg: Add new GdkRGBA methods to replace obsolete GdkColor methods Is this what you expect? This will of course be an API/ABI break. We could keep the same method names but that would be a more obscure break when you ran against the wrong library.
Review of attachment 363764 [details] [review]: This patch looks good to me. Bastien, do you have any additional thoughts?
Review of attachment 363764 [details] [review]: It's missing a change of LT_VERSION in configure.ac. Are there also patches for gnome-control-center around? ::: libgnome-desktop/gnome-bg.c @@ +1127,3 @@ color.green = (bg->primary.green + bg->secondary.green) / 2; color.blue = (bg->primary.blue + bg->secondary.blue) / 2; + color.alpha = (bg->primary.alpha + bg->secondary.alpha) / 2; Is that necessary? It's not used later on.
Created attachment 367558 [details] [review] gnome-bg: Add new GdkRGBA methods to replace obsolete GdkColor methods Updated with review feedback.
Review of attachment 367558 [details] [review]: Looks good. Waiting on the gnome-control-center patch before committing. Thanks!
The g-c-c patch is in bug 788205 (see this bugs description)
Created attachment 367606 [details] [review] gnome-bg: Add new GdkRGBA methods to replace obsolete GdkColor methods Added bug link