[longomatch] Don't display the players notebook without players sybcategories



commit 3ed5569ad50916fa57118fe9a49afbcfe4adcb07
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Apr 10 07:48:21 2013 +0200

    Don't display the players notebook without players sybcategories

 LongoMatch.GUI/Gui/Dialog/TaggerDialog.cs                    | 3 +++
 LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs | 4 +---
 LongoMatch.GUI/gtk-gui/gui.stetic                            | 6 ++----
 3 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/TaggerDialog.cs b/LongoMatch.GUI/Gui/Dialog/TaggerDialog.cs
index 09856b7..c81c72d 100644
--- a/LongoMatch.GUI/Gui/Dialog/TaggerDialog.cs
+++ b/LongoMatch.GUI/Gui/Dialog/TaggerDialog.cs
@@ -46,6 +46,7 @@ namespace LongoMatch.Gui.Dialog
                        this.visitorTeamTemplate = visitorTeamTemplate;
                        
                        taggerwidget1.SetData(play, localTeamTemplate.TeamName, visitorTeamTemplate.TeamName);
+                       playersnotebook.Visible = false;
                        
                        /* Iterate over all subcategories, adding a widget only for the FastTag ones */
                        foreach (var subcat in play.Category.SubCategories) {
@@ -55,6 +56,8 @@ namespace LongoMatch.Gui.Dialog
                                        var tagcat = subcat as TagSubCategory;
                                        AddTagSubcategory(tagcat, play.Tags);
                                } else if (subcat is PlayerSubCategory) {
+                                       playersnotebook.Visible = false;
+                                       hbox1.SetChildPacking(tagsnotebook, false, false, 0, 
Gtk.PackType.Start);
                                        var tagcat = subcat as PlayerSubCategory;
                                        AddPlayerSubcategory(tagcat, play.Players);
                                } else if (subcat is TeamSubCategory) {
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
index c7f8f0b..de455d1 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Dialog.TaggerDialog.cs
@@ -48,8 +48,6 @@ namespace LongoMatch.Gui.Dialog
                        this.hbox1.Add (this.tagsnotebook);
                        global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 
[this.tagsnotebook]));
                        w3.Position = 0;
-                       w3.Expand = false;
-                       w3.Fill = false;
                        // Container child hbox1.Gtk.Box+BoxChild
                        this.playersnotebook = new global::Gtk.Notebook ();
                        this.playersnotebook.CanFocus = true;
@@ -93,7 +91,7 @@ namespace LongoMatch.Gui.Dialog
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
                        }
-                       this.DefaultWidth = 620;
+                       this.DefaultWidth = 636;
                        this.DefaultHeight = 278;
                        this.Show ();
                }
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index d649356..051b8f2 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -5303,7 +5303,7 @@ Show-&gt;&lt;b&gt; S&lt;/b&gt;
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.TaggerDialog" design-size="620 278">
+  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.TaggerDialog" design-size="636 278">
     <property name="MemberName" />
     <property name="Title" translatable="yes">Tag play</property>
     <property name="Icon">stock:longomatch Menu</property>
@@ -5341,9 +5341,7 @@ Show-&gt;&lt;b&gt; S&lt;/b&gt;
               </widget>
               <packing>
                 <property name="Position">0</property>
-                <property name="AutoSize">True</property>
-                <property name="Expand">False</property>
-                <property name="Fill">False</property>
+                <property name="AutoSize">False</property>
               </packing>
             </child>
             <child>


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