[cheese] Maintain aspect ratio when resizing preview window
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Maintain aspect ratio when resizing preview window
- Date: Mon, 14 Sep 2015 10:46:38 +0000 (UTC)
commit 4b0384c1bd08a5bd95f9ffa83ac8bae95e2cf1a8
Author: David King <amigadave amigadave com>
Date: Mon Sep 14 11:44:38 2015 +0100
Maintain aspect ratio when resizing preview window
Set content-gravity on the preview actor to
CLUTTER_CONTENT_GRAVITY_RESIZE_ASPECT.
https://bugzilla.gnome.org/show_bug.cgi?id=754988
data/cheese-viewport.json | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/cheese-viewport.json b/data/cheese-viewport.json
index cba5d8b..312a2b6 100644
--- a/data/cheese-viewport.json
+++ b/data/cheese-viewport.json
@@ -3,7 +3,8 @@
"id": "video_preview",
"type": "ClutterActor",
"child::x-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
- "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER"
+ "child::y-align": "CLUTTER_BIN_ALIGNMENT_CENTER",
+ "content-gravity": "CLUTTER_CONTENT_GRAVITY_RESIZE_ASPECT"
},
{
"id": "background",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]