summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2015-09-14 11:44:38 +0100
committerDavid King <amigadave@amigadave.com>2015-09-14 11:46:23 +0100
commit4b0384c1bd08a5bd95f9ffa83ac8bae95e2cf1a8 (patch)
treea7b878b58525a7c20a9d8af406163c8e26afeda9 /data
parent46fcf09db5e4acd5d30d4e6cc7c6cfa357134094 (diff)
downloadcheese-4b0384c1bd08a5bd95f9ffa83ac8bae95e2cf1a8.tar.gz
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
Diffstat (limited to 'data')
-rw-r--r--data/cheese-viewport.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/cheese-viewport.json b/data/cheese-viewport.json
index cba5d8be..312a2b65 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",