[longomatch] Force a default width/height for the DrawingTool. We set height to the minimum so that the toolbar d



commit be6400cda4e8d1ec90f530353f041412e819d015
Author: Julien Moutte <julien fluendo com>
Date:   Tue Sep 9 19:17:09 2014 +0200

    Force a default width/height for the DrawingTool. We set height to the minimum so that the toolbar 
defines the minimum height. If we don't do that stetic will calculate a design size using wrong button sizes 
and will make the window way too big.

 .../gtk-gui/LongoMatch.Gui.Dialog.DrawingTool.cs   |    4 ++--
 LongoMatch.GUI/gtk-gui/gui.stetic                  |    3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.DrawingTool.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.DrawingTool.cs
index 3419223..da31945 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.DrawingTool.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.DrawingTool.cs
@@ -72,6 +72,8 @@ namespace LongoMatch.Gui.Dialog
                        this.Icon = global::Stetic.IconLoader.LoadIcon (this, "longomatch", 
global::Gtk.IconSize.Menu);
                        this.WindowPosition = ((global::Gtk.WindowPosition)(4));
                        this.Modal = true;
+                       this.DefaultWidth = 800;
+                       this.DefaultHeight = 1;
                        this.Gravity = ((global::Gdk.Gravity)(5));
                        this.SkipPagerHint = true;
                        this.SkipTaskbarHint = true;
@@ -700,8 +702,6 @@ namespace LongoMatch.Gui.Dialog
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
                        }
-                       this.DefaultWidth = 977;
-                       this.DefaultHeight = 935;
                        this.savetoprojectbutton.Hide ();
                        this.closebutton.Hide ();
                        this.Show ();
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index dc3e733..f8903fe 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -2943,6 +2943,8 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
     <property name="Icon">stock:longomatch Menu</property>
     <property name="WindowPosition">CenterOnParent</property>
     <property name="Modal">True</property>
+    <property name="DefaultWidth">800</property>
+    <property name="DefaultHeight">1</property>
     <property name="Gravity">Center</property>
     <property name="SkipPagerHint">True</property>
     <property name="SkipTaskbarHint">True</property>
@@ -2995,6 +2997,7 @@ Hotkeys with a single key are also allowed with Ctrl+key.</property>
                             <property name="Tooltip" translatable="yes">Angle tool</property>
                             <property name="CanFocus">True</property>
                             <property name="Label" translatable="yes" />
+                            <property name="Active">True</property>
                             <property name="DrawIndicator">False</property>
                             <property name="HasLabel">False</property>
                             <property name="UseUnderline">True</property>


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