GNOME Bugzilla – Bug 690593
ui: Don't use deprecated GtkStyleContext API
Last modified: 2012-12-23 08:18:07 UTC
See patch.
Created attachment 232029 [details] [review] ui: Don't use deprecated GtkStyleContext API Update for deprecations.
Review of attachment 232029 [details] [review]: ::: src/ui/theme-viewer.c @@ +935,2 @@ style = gtk_widget_get_style_context (widget); + gtk_style_context_get (style, GTK_STATE_FLAG_NORMAL, "font", &font_desc, NULL); Leaking font_desc here, are we not? ::: src/ui/ui.c @@ +735,3 @@ GtkStyleContext *style = NULL; PangoContext *context; + PangoFontDescription *font_desc, *free_font_desc = NULL; Need to keep font_desc const or do an explicit cast below otherwise you get ui/ui.c:742:17: error: assignment discards 'const' qualifier from pointer target type [-Werror]
Created attachment 232077 [details] [review] ui: Don't use deprecated GtkStyleContext API Update for deprecations.
Review of attachment 232077 [details] [review]: ++
Attachment 232077 [details] pushed as 4e21d5d - ui: Don't use deprecated GtkStyleContext API