GNOME Bugzilla – Bug 779637
Make the recipe printer respect the default image
Last modified: 2017-03-07 18:16:12 UTC
The recipe printer currently displays the first image, always. It should use the default-image key that we store for each recipe now.
Created attachment 347398 [details] [review] Makes gr-recipe-printer respect the default image
Review of attachment 347398 [details] [review]: ::: src/gr-recipe-printer.c @@ +133,3 @@ if (images && images->len > 0) { + int def_index = gr_recipe_store_get_default_image(store,printer->recipe); + ri = &g_array_index (images, GrImage, def_index); I don't think you need to add a store api here. You can just use gr_recipe_get_default_image, since you have the recipe object in hands anways.
Created attachment 347405 [details] [review] Makes gr-recipe-printer respect the default image Here is the one with the changes incorporated.
Review of attachment 347405 [details] [review]: looks good now