[gbrainy] Vertical expand for correct toolbar + full screen



commit 493e636d43d24b656b7a73e5963ada94c0a82d03
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Mar 28 17:16:06 2016 +0200

    Vertical expand for correct toolbar + full screen

 src/Clients/Classical/gbrainy.cs |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/Clients/Classical/gbrainy.cs b/src/Clients/Classical/gbrainy.cs
index 5ca9630..f82b0b8 100644
--- a/src/Clients/Classical/gbrainy.cs
+++ b/src/Clients/Classical/gbrainy.cs
@@ -148,6 +148,7 @@ namespace gbrainy.Clients.Classical
 
                        drawing_area = new GameDrawingArea ();
                        drawing_area.Drawable = session;
+                        drawing_area.Vexpand = true;
                         drawing_area.SetSizeRequest (drawing_vbox.WidthRequest, drawing_vbox.HeightRequest);
                        GameSensitiveUI ();
 
@@ -680,14 +681,6 @@ namespace gbrainy.Clients.Classical
                                Preferences.Save ();
                        }
                        toolbar.Attach (orientation);
-
-            // resize to reclaim height
-            int width, height;
-                       Requisition requisition;
-
-                       requisition = toolbar.SizeRequest ();
-                       app_window.GetSize (out width, out height);
-                       app_window.Resize (width, height - requisition.Height);
                }
 
                void OnHorizontalToolbar (object sender, System.EventArgs args)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]