GNOME Bugzilla – Bug 105497
const GdkColor
Last modified: 2011-02-04 16:12:26 UTC
The colour parameters of gdk_gc_set_rgb_fg_color and gdk_gc_set_rgb_bg_color need to be const.
Wouldn't hurt, but there are lots of other examples in gdkgc.h gtkcolorsel.h gtkwidget.h that should get the same treatment.
The attached patch fixes this for all un-consted cases of GdkColor that I could find that need it.
Created attachment 23051 [details] [review] Patch with constification.
Moving this to the "2.4 API freeze" milestone. It doesn't really change the API, but the function prototypes do change.
I think you should go ahead and commit. There are a few GdkColors in gdk/linux-fb/miwideline.[ch] that could be const'ed, but I really don't think that's worth worrying about.
Thanks, committed :)