[recipes] Make recipe printer respect default image
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Make recipe printer respect default image
- Date: Tue, 7 Mar 2017 18:15:59 +0000 (UTC)
commit 58c6ba707d15ccb40b65354fb19d7b41500da730
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Tue Mar 7 21:06:20 2017 +0530
Make recipe printer respect default image
gr-recipe-printer prints the default image instead of the first image uploaded
https://bugzilla.gnome.org/show_bug.cgi?id=779637
src/gr-recipe-printer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-recipe-printer.c b/src/gr-recipe-printer.c
index 373c50b..7ee7df0 100644
--- a/src/gr-recipe-printer.c
+++ b/src/gr-recipe-printer.c
@@ -131,7 +131,8 @@ begin_print (GtkPrintOperation *operation,
g_object_get (printer->recipe, "images", &images, NULL);
if (images && images->len > 0) {
- ri = &g_array_index (images, GrImage, 0);
+ int def_index = gr_recipe_get_default_image(printer->recipe);
+ ri = &g_array_index (images, GrImage, def_index);
printer->image = load_pixbuf_fit_size (ri->path, width / 2, height / 4, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]