[recipes] Use bigger pictures for a wide cooking view
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Use bigger pictures for a wide cooking view
- Date: Tue, 14 Feb 2017 02:10:56 +0000 (UTC)
commit 21cf49a342f1e74250cabcfdf2a0060dae445946
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 13 21:07:04 2017 -0500
Use bigger pictures for a wide cooking view
src/gr-cooking-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-cooking-view.c b/src/gr-cooking-view.c
index 2940d51..0675cf3 100644
--- a/src/gr-cooking-view.c
+++ b/src/gr-cooking-view.c
@@ -180,7 +180,10 @@ setup_step (GrCookingView *view)
g_autoptr(GdkPixbuf) pixbuf = NULL;
ri = &g_array_index (view->images, GrRotatedImage, s->image);
- pixbuf = load_pixbuf_fill_size (ri->path, ri->angle, 360, 240);
+ if (view->wide)
+ pixbuf = load_pixbuf_fill_size (ri->path, ri->angle, 640, 480);
+ else
+ pixbuf = load_pixbuf_fill_size (ri->path, ri->angle, 320, 240);
gtk_image_set_from_pixbuf (GTK_IMAGE (view->cooking_image), pixbuf);
gtk_stack_set_visible_child_name (GTK_STACK (view->cooking_stack), "image");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]