GNOME Bugzilla – Bug 684537
Do not use deprecated API
Last modified: 2012-09-23 21:12:22 UTC
Applies on top of patch attached to bug 684536
Created attachment 224914 [details] [review] Do not use deprecated API Namely, we make the following replacements: * GtkStyle -> GtkStyleContext * GdkColor -> GdkRGBA * GtkColorSelectionDialog -> GtkColorChooserDialog Also, explicitly include librsvg/rsvg-cairo.h in gsm_color_button.c
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 664524 ***
Review of attachment 224914 [details] [review]: Nice work. I have marked the bug as a duplicate of bug 664524 (build system monitor without warnings) as similar work has been started there. Your patch however seems a lot better than my branch linked there, so I like it, however it creates another warning in the build process : In file included from gsm_color_button.c:35:0: /usr/include/librsvg-2.0/librsvg/rsvg-cairo.h:27:2: warning: #warning "Including <librsvg/rsvg-cairo.h> directly is deprecated." [-Wcpp] So I guess including rsvg-cairo.h explicitly is not a good idea, it's enough to include rsvg.h. With that minor change, it's likely that I'll accept it, as it works as expected.
Created attachment 225020 [details] [review] Do not use deprecated API Namely, we make the following replacements: * GtkStyle -> GtkStyleContext * GdkColor -> GdkRGBA * GtkColorSelectionDialog -> GtkColorChooserDialog Yeah sorry about rsvg-cairo.h inclusion, my bad. I was building against an outdated version of librsvg.
Created attachment 225036 [details] [review] Do not use deprecated API Namely, we make the following replacements: * GtkStyle -> GtkStyleContext * GdkColor -> GdkRGBA * GtkColorSelectionDialog -> GtkColorChooserDialog --- I forgot to change highlight_factor type from int to double
Not sure if attaching patches to an already closed report is the best way forward. Doing this in bug 664524 might be better?