[longomatch] Set dialog properties for the stats window



commit 339f1db7515a06dfd332520b45881cc6f052c6b1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Aug 5 22:04:18 2013 +0200

    Set dialog properties for the stats window

 .../gtk-gui/LongoMatch.Gui.Dialog.StatsViewer.cs   |   23 ++++--------
 LongoMatch.GUI/gtk-gui/gui.stetic                  |   36 +++++++------------
 2 files changed, 21 insertions(+), 38 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.StatsViewer.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.StatsViewer.cs
index 0dcdb8b..c82b578 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.StatsViewer.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.StatsViewer.cs
@@ -10,14 +10,20 @@ namespace LongoMatch.Gui.Dialog
                private global::LongoMatch.Gui.Component.Stats.CategoriesViewer categoriesviewer;
                private global::Gtk.Label label1;
                private global::Gtk.Button buttonCancel;
-               private global::Gtk.Button buttonOk;
                
                protected virtual void Build ()
                {
                        global::Stetic.Gui.Initialize (this);
                        // Widget LongoMatch.Gui.Dialog.StatsViewer
                        this.Name = "LongoMatch.Gui.Dialog.StatsViewer";
-                       this.WindowPosition = ((global::Gtk.WindowPosition)(4));
+                       this.Title = global::Mono.Unix.Catalog.GetString ("Stats");
+                       this.Icon = global::Gdk.Pixbuf.LoadFromResource ("logo.svg");
+                       this.WindowPosition = ((global::Gtk.WindowPosition)(3));
+                       this.Modal = true;
+                       this.DestroyWithParent = true;
+                       this.Gravity = ((global::Gdk.Gravity)(5));
+                       this.SkipPagerHint = true;
+                       this.SkipTaskbarHint = true;
                        // Internal child LongoMatch.Gui.Dialog.StatsViewer.VBox
                        global::Gtk.VBox w1 = this.VBox;
                        w1.Name = "dialog1_VBox";
@@ -72,19 +78,6 @@ namespace LongoMatch.Gui.Dialog
                        global::Gtk.ButtonBox.ButtonBoxChild w6 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w5 
[this.buttonCancel]));
                        w6.Expand = false;
                        w6.Fill = false;
-                       // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
-                       this.buttonOk = new global::Gtk.Button ();
-                       this.buttonOk.CanDefault = true;
-                       this.buttonOk.CanFocus = true;
-                       this.buttonOk.Name = "buttonOk";
-                       this.buttonOk.UseStock = true;
-                       this.buttonOk.UseUnderline = true;
-                       this.buttonOk.Label = "gtk-ok";
-                       this.AddActionWidget (this.buttonOk, -5);
-                       global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w5 
[this.buttonOk]));
-                       w7.Position = 1;
-                       w7.Expand = false;
-                       w7.Fill = false;
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
                        }
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 458a39c..b83c334 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -9033,8 +9033,15 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
   </widget>
   <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.StatsViewer" design-size="1167 619">
     <property name="MemberName" />
-    <property name="WindowPosition">CenterOnParent</property>
-    <property name="Buttons">2</property>
+    <property name="Title" translatable="yes">Stats</property>
+    <property name="Icon">resource:logo.svg</property>
+    <property name="WindowPosition">CenterAlways</property>
+    <property name="Modal">True</property>
+    <property name="DestroyWithParent">True</property>
+    <property name="Gravity">Center</property>
+    <property name="SkipPagerHint">True</property>
+    <property name="SkipTaskbarHint">True</property>
+    <property name="Buttons">1</property>
     <property name="HelpButton">False</property>
     <child internal-child="VBox">
       <widget class="Gtk.VBox" id="dialog1_VBox">
@@ -9091,7 +9098,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
         <property name="MemberName" />
         <property name="Spacing">10</property>
         <property name="BorderWidth">5</property>
-        <property name="Size">2</property>
+        <property name="Size">1</property>
         <property name="LayoutStyle">End</property>
         <child>
           <widget class="Gtk.Button" id="buttonCancel">
@@ -9100,32 +9107,15 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
             <property name="CanFocus">True</property>
             <property name="UseStock">True</property>
             <property name="Type">StockItem</property>
-            <property name="StockId">gtk-cancel</property>
-            <property name="ResponseId">-6</property>
-            <property name="label">gtk-cancel</property>
+            <property name="StockId">gtk-close</property>
+            <property name="ResponseId">-7</property>
+            <property name="label">gtk-close</property>
           </widget>
           <packing>
             <property name="Expand">False</property>
             <property name="Fill">False</property>
           </packing>
         </child>
-        <child>
-          <widget class="Gtk.Button" id="buttonOk">
-            <property name="MemberName" />
-            <property name="CanDefault">True</property>
-            <property name="CanFocus">True</property>
-            <property name="UseStock">True</property>
-            <property name="Type">StockItem</property>
-            <property name="StockId">gtk-ok</property>
-            <property name="ResponseId">-5</property>
-            <property name="label">gtk-ok</property>
-          </widget>
-          <packing>
-            <property name="Position">1</property>
-            <property name="Expand">False</property>
-            <property name="Fill">False</property>
-          </packing>
-        </child>
       </widget>
     </child>
   </widget>


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