GNOME Bugzilla – Bug 694359
[PATCH] Fix deprecated declaration
Last modified: 2013-02-21 23:34:40 UTC
Created attachment 237037 [details] [review] Fix deprecated declaration * gd-two-lines-renderer.c: Fix deprecated declaration gtk_style_context_get_font to gtk_style_context_get
Review of attachment 237037 [details] [review]: Thanks for the patch! I have a comment below: ::: libgd/gd-two-lines-renderer.c @@ +332,3 @@ /* Fetch the average size of a charachter */ context = gtk_widget_get_pango_context (widget); + gtk_style_context_get (style_context, 0, "font", &font_desc, NULL); I believe if you do this, then you need to change the PangoFontDescription pointer not to be const anymore, and then later call pango_font_description_free() when you're done using it.
Created attachment 237041 [details] [review] New updated patch Updating the patch with comments suggested
Review of attachment 237041 [details] [review]: Thanks, this looks good. Do you have git commit access?
No, I don't have commit access. But I am still a gnome newbie, maybe it is better if someone check my patchs/commits before to be commited. I don't want break some important application in gnome.
Thanks, I pushed this to master.