[quadrapassel] Show the clutterembed inside an aspectframe
- From: Mario Wenzel <mariowenzel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [quadrapassel] Show the clutterembed inside an aspectframe
- Date: Fri, 24 Oct 2014 14:28:25 +0000 (UTC)
commit 25c37e2670bc1946f9bbf3db057946e784e2cf9f
Author: Robert Roth <robert roth off gmail com>
Date: Wed Oct 22 22:03:13 2014 +0300
Show the clutterembed inside an aspectframe
https://bugzilla.gnome.org/show_bug.cgi?id=710618
src/quadrapassel.vala | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index ca3093a..203d464 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -129,8 +129,11 @@ public class Quadrapassel : Gtk.Application
view.show_shadow = settings.get_boolean ("show-shadow");
view.game = new Game (20, 14, 1, 20, 10);
view.show ();
-
- game_grid.attach (view, 0, 0, 2, 18);
+ var game_aspect = new Gtk.AspectFrame (null, 0.5f, 0.5f, 14.0f/20.0f, false);
+ game_aspect.show ();
+ game_aspect.add (view);
+ game_aspect.border_width = 12;
+ game_grid.attach (game_aspect, 0, 1, 2, 17);
bool rtl = Gtk.Widget.get_default_direction () == Gtk.TextDirection.RTL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]