[longomatch] Closes #603276 - Use a template different from the default one when creating a new one



commit a42853f5c0d1b5c6643d57290dfe176148576fad
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Dec 3 00:50:10 2009 +0100

    Closes #603276 -  Use a template different from the default one when creating a new one

 LongoMatch/Gui/Dialog/EntryDialog.cs               |   55 ++++++-
 LongoMatch/Gui/Dialog/TemplatesEditor.cs           |   33 +++-
 .../gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs   |  176 ++++++++++++--------
 LongoMatch/gtk-gui/gui.stetic                      |  141 ++++++++++++----
 4 files changed, 292 insertions(+), 113 deletions(-)
---
diff --git a/LongoMatch/Gui/Dialog/EntryDialog.cs b/LongoMatch/Gui/Dialog/EntryDialog.cs
index b4eca8b..15b3f34 100644
--- a/LongoMatch/Gui/Dialog/EntryDialog.cs
+++ b/LongoMatch/Gui/Dialog/EntryDialog.cs
@@ -1,4 +1,4 @@
-// NewSectionsTemplatesFiles.cs
+// EntryDialog.cs
 //
 //  Copyright (C) 2007-2009 Andoni Morales Alastruey
 //
@@ -19,6 +19,7 @@
 //
 
 using System;
+using System.Collections.Generic;
 
 namespace LongoMatch.Gui.Dialog
 {
@@ -29,9 +30,13 @@ namespace LongoMatch.Gui.Dialog
 	public partial class EntryDialog : Gtk.Dialog
 	{
 
+		bool showCount;
+		
 		public EntryDialog()
 		{
 			this.Build();
+			ShowCount = false;
+			setAvailableTemplatesVisible(false);
 		}
 
 		public string Text {
@@ -45,17 +50,59 @@ namespace LongoMatch.Gui.Dialog
 
 		public int Count {
 			get {
-				return (int)spinbutton1.Value;
+				return (int)playersspinbutton.Value;
 			}
 			set {
-				spinbutton1.Value = value;
+				playersspinbutton.Value = value;
 			}
 		}
 
 		public bool ShowCount {
 			set {
-				hbox1.Visible = value;
+				showCount = value;
+				playerslabel.Visible = value;
+				playersspinbutton.Visible = value;
 			}
+			get {
+				return showCount;
+			}
+		}
+		
+		public List<string> AvailableTemplates {
+			set {
+				if (value.Count > 0){
+					foreach (String text in value)
+						combobox.AppendText(text);
+					setAvailableTemplatesVisible(true);
+					combobox.Active = 0;
+				}
+				else
+					setAvailableTemplatesVisible(false);
+			}		
+		}
+		
+		public string SelectedTemplate {
+			get {
+				if (checkbutton.Active)
+					return combobox.ActiveText;
+				else return null;
+			}
+		}
+		
+		private void setAvailableTemplatesVisible(bool visible){
+			combobox.Visible = visible;
+			existentemplatelabel.Visible = visible;
+			checkbutton.Visible = visible;
+		}
+
+		protected virtual void OnCheckbuttonToggled (object sender, System.EventArgs e)
+		{
+			bool active = checkbutton.Active;
+			if (ShowCount){
+				playerslabel.Sensitive = !active;
+				playersspinbutton.Sensitive = !active;				
+			}
+			combobox.Sensitive = active;			
 		}
 	}
 }
diff --git a/LongoMatch/Gui/Dialog/TemplatesEditor.cs b/LongoMatch/Gui/Dialog/TemplatesEditor.cs
index 3f6feed..a348dff 100644
--- a/LongoMatch/Gui/Dialog/TemplatesEditor.cs
+++ b/LongoMatch/Gui/Dialog/TemplatesEditor.cs
@@ -19,10 +19,10 @@
 //
 
 using System;
+using System.Collections.Generic;
 using System.IO;
 using Gtk;
 using Mono.Unix;
-using System.Collections;
 using LongoMatch.DB;
 using LongoMatch.IO;
 
@@ -181,30 +181,47 @@ namespace LongoMatch.Gui.Dialog
 		{
 			string name;
 			int count;
+			string [] templates = null;
+			List<string> availableTemplates = new List<string>();
 			EntryDialog ed= new  EntryDialog();
 
 			ed.Title = Catalog.GetString("Template name");
-			if (useType == UseType.TeamTemplate)
-				ed.ShowCount=true;
+			
+			if (useType == UseType.TeamTemplate){
+				ed.ShowCount=true;				
+			}
+			
+			templates = System.IO.Directory.GetFiles(MainClass.TemplatesDir());
+			foreach (String text in templates){
+				string templateName = System.IO.Path.GetFileName(text);
+				if (templateName.EndsWith(fileExtension) && templateName != "default"+fileExtension)
+					availableTemplates.Add(templateName);					
+			}
+			ed.AvailableTemplates = availableTemplates; 
+
 
 			if (ed.Run() == (int)ResponseType.Ok) {
 				name = ed.Text;
 				count = ed.Count;
 				if (name == "") {
-					MessagePopup.PopupMessage(this, MessageType.Warning,
+					MessagePopup.PopupMessage(ed, MessageType.Warning,
 					                          Catalog.GetString("You cannot create a template with a void name"));
 					ed.Destroy();
 					return;
 				}
 				if (System.IO.File.Exists(System.IO.Path.Combine(MainClass.TemplatesDir(),name+fileExtension))) {
-					MessagePopup.PopupMessage(this, MessageType.Warning,
+					MessagePopup.PopupMessage(ed, MessageType.Warning,
 					                          Catalog.GetString("A template with this name already exists"));
 					ed.Destroy();
 					return;
-				}
-
-				if (useType == UseType.SectionsTemplate)
+				}	
+				
+				if (ed.SelectedTemplate != null)
+						System.IO.File.Copy(System.IO.Path.Combine(MainClass.TemplatesDir(),ed.SelectedTemplate),
+						                    System.IO.Path.Combine(MainClass.TemplatesDir(),name+fileExtension));
+				else if (useType == UseType.SectionsTemplate){
 					SectionsWriter.CreateNewTemplate(name+fileExtension);
+				}
 				else {
 					TeamTemplate tt = new TeamTemplate();
 					tt.CreateDefaultTemplate(count);
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
index b26dd9a..91389f9 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Dialog.EntryDialog.cs
@@ -13,17 +13,21 @@ namespace LongoMatch.Gui.Dialog {
     
     public partial class EntryDialog {
         
-        private Gtk.HBox hbox2;
+        private Gtk.Table table1;
         
-        private Gtk.Label label2;
+        private Gtk.CheckButton checkbutton;
         
         private Gtk.Entry entry1;
         
-        private Gtk.HBox hbox1;
+        private Gtk.Label existentemplatelabel;
+        
+        private Gtk.Label label2;
+        
+        private Gtk.Label playerslabel;
         
-        private Gtk.Label label1;
+        private Gtk.SpinButton playersspinbutton;
         
-        private Gtk.SpinButton spinbutton1;
+        private Gtk.ComboBox combobox;
         
         private Gtk.Button buttonCancel;
         
@@ -46,68 +50,100 @@ namespace LongoMatch.Gui.Dialog {
             w1.Name = "dialog1_VBox";
             w1.BorderWidth = ((uint)(2));
             // Container child dialog1_VBox.Gtk.Box+BoxChild
-            this.hbox2 = new Gtk.HBox();
-            this.hbox2.Name = "hbox2";
-            this.hbox2.Spacing = 6;
-            // Container child hbox2.Gtk.Box+BoxChild
-            this.label2 = new Gtk.Label();
-            this.label2.Name = "label2";
-            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:");
-            this.hbox2.Add(this.label2);
-            Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2]));
-            w2.Position = 0;
-            w2.Expand = false;
-            w2.Fill = false;
-            // Container child hbox2.Gtk.Box+BoxChild
+            this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false);
+            this.table1.Name = "table1";
+            this.table1.RowSpacing = ((uint)(6));
+            this.table1.ColumnSpacing = ((uint)(6));
+            // Container child table1.Gtk.Table+TableChild
+            this.checkbutton = new Gtk.CheckButton();
+            this.checkbutton.CanFocus = true;
+            this.checkbutton.Name = "checkbutton";
+            this.checkbutton.Label = "";
+            this.checkbutton.DrawIndicator = true;
+            this.checkbutton.UseUnderline = true;
+            this.table1.Add(this.checkbutton);
+            Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton]));
+            w2.TopAttach = ((uint)(2));
+            w2.BottomAttach = ((uint)(3));
+            w2.LeftAttach = ((uint)(1));
+            w2.RightAttach = ((uint)(2));
+            w2.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
             this.entry1 = new Gtk.Entry();
             this.entry1.CanFocus = true;
             this.entry1.Name = "entry1";
             this.entry1.IsEditable = true;
             this.entry1.InvisibleChar = 'â??';
-            this.hbox2.Add(this.entry1);
-            Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox2[this.entry1]));
-            w3.Position = 1;
-            w1.Add(this.hbox2);
-            Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox2]));
-            w4.Position = 0;
-            w4.Expand = false;
-            w4.Fill = false;
+            this.table1.Add(this.entry1);
+            Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.entry1]));
+            w3.LeftAttach = ((uint)(1));
+            w3.RightAttach = ((uint)(2));
+            w3.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.existentemplatelabel = new Gtk.Label();
+            this.existentemplatelabel.Name = "existentemplatelabel";
+            this.existentemplatelabel.LabelProp = Mono.Unix.Catalog.GetString("Copy existent template:");
+            this.table1.Add(this.existentemplatelabel);
+            Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.existentemplatelabel]));
+            w4.TopAttach = ((uint)(2));
+            w4.BottomAttach = ((uint)(3));
+            w4.XOptions = ((Gtk.AttachOptions)(4));
+            w4.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.label2 = new Gtk.Label();
+            this.label2.Name = "label2";
+            this.label2.Xalign = 0F;
+            this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:");
+            this.table1.Add(this.label2);
+            Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label2]));
+            w5.XOptions = ((Gtk.AttachOptions)(4));
+            w5.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.playerslabel = new Gtk.Label();
+            this.playerslabel.Name = "playerslabel";
+            this.playerslabel.Xalign = 0F;
+            this.playerslabel.LabelProp = Mono.Unix.Catalog.GetString("Players:");
+            this.table1.Add(this.playerslabel);
+            Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.playerslabel]));
+            w6.TopAttach = ((uint)(1));
+            w6.BottomAttach = ((uint)(2));
+            w6.XOptions = ((Gtk.AttachOptions)(4));
+            w6.YOptions = ((Gtk.AttachOptions)(4));
+            // Container child table1.Gtk.Table+TableChild
+            this.playersspinbutton = new Gtk.SpinButton(1, 30, 1);
+            this.playersspinbutton.CanFocus = true;
+            this.playersspinbutton.Name = "playersspinbutton";
+            this.playersspinbutton.Adjustment.PageIncrement = 10;
+            this.playersspinbutton.ClimbRate = 1;
+            this.playersspinbutton.Numeric = true;
+            this.playersspinbutton.Value = 15;
+            this.table1.Add(this.playersspinbutton);
+            Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.playersspinbutton]));
+            w7.TopAttach = ((uint)(1));
+            w7.BottomAttach = ((uint)(2));
+            w7.LeftAttach = ((uint)(1));
+            w7.RightAttach = ((uint)(2));
+            w7.XOptions = ((Gtk.AttachOptions)(4));
+            w7.YOptions = ((Gtk.AttachOptions)(0));
+            w1.Add(this.table1);
+            Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.table1]));
+            w8.Position = 0;
+            w8.Expand = false;
             // Container child dialog1_VBox.Gtk.Box+BoxChild
-            this.hbox1 = new Gtk.HBox();
-            this.hbox1.Name = "hbox1";
-            this.hbox1.Spacing = 6;
-            // Container child hbox1.Gtk.Box+BoxChild
-            this.label1 = new Gtk.Label();
-            this.label1.Name = "label1";
-            this.label1.LabelProp = Mono.Unix.Catalog.GetString("Players:");
-            this.hbox1.Add(this.label1);
-            Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1]));
-            w5.Position = 0;
-            w5.Expand = false;
-            w5.Fill = false;
-            // Container child hbox1.Gtk.Box+BoxChild
-            this.spinbutton1 = new Gtk.SpinButton(1, 30, 1);
-            this.spinbutton1.CanFocus = true;
-            this.spinbutton1.Name = "spinbutton1";
-            this.spinbutton1.Adjustment.PageIncrement = 10;
-            this.spinbutton1.ClimbRate = 1;
-            this.spinbutton1.Numeric = true;
-            this.spinbutton1.Value = 15;
-            this.hbox1.Add(this.spinbutton1);
-            Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.spinbutton1]));
-            w6.Position = 1;
-            w6.Fill = false;
-            w1.Add(this.hbox1);
-            Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.hbox1]));
-            w7.Position = 1;
-            w7.Expand = false;
-            w7.Fill = false;
+            this.combobox = Gtk.ComboBox.NewText();
+            this.combobox.Sensitive = false;
+            this.combobox.Name = "combobox";
+            w1.Add(this.combobox);
+            Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.combobox]));
+            w9.Position = 1;
+            w9.Expand = false;
+            w9.Fill = false;
             // Internal child LongoMatch.Gui.Dialog.EntryDialog.ActionArea
-            Gtk.HButtonBox w8 = this.ActionArea;
-            w8.Name = "dialog1_ActionArea";
-            w8.Spacing = 6;
-            w8.BorderWidth = ((uint)(5));
-            w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
+            Gtk.HButtonBox w10 = this.ActionArea;
+            w10.Name = "dialog1_ActionArea";
+            w10.Spacing = 6;
+            w10.BorderWidth = ((uint)(5));
+            w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
             // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
             this.buttonCancel = new Gtk.Button();
             this.buttonCancel.CanDefault = true;
@@ -117,9 +153,9 @@ namespace LongoMatch.Gui.Dialog {
             this.buttonCancel.UseUnderline = true;
             this.buttonCancel.Label = "gtk-cancel";
             this.AddActionWidget(this.buttonCancel, -6);
-            Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonCancel]));
-            w9.Expand = false;
-            w9.Fill = false;
+            Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel]));
+            w11.Expand = false;
+            w11.Fill = false;
             // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild
             this.buttonOk = new Gtk.Button();
             this.buttonOk.CanDefault = true;
@@ -129,17 +165,17 @@ namespace LongoMatch.Gui.Dialog {
             this.buttonOk.UseUnderline = true;
             this.buttonOk.Label = "gtk-ok";
             this.AddActionWidget(this.buttonOk, -5);
-            Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.buttonOk]));
-            w10.Position = 1;
-            w10.Expand = false;
-            w10.Fill = false;
+            Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk]));
+            w12.Position = 1;
+            w12.Expand = false;
+            w12.Fill = false;
             if ((this.Child != null)) {
                 this.Child.ShowAll();
             }
-            this.DefaultWidth = 346;
-            this.DefaultHeight = 114;
-            this.hbox1.Hide();
+            this.DefaultWidth = 339;
+            this.DefaultHeight = 175;
             this.Show();
+            this.checkbutton.Toggled += new System.EventHandler(this.OnCheckbuttonToggled);
         }
     }
 }
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index 0ee3326..25ac1b7 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -2271,7 +2271,7 @@ new one.</property>
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.EntryDialog" design-size="346 114">
+  <widget class="Gtk.Dialog" id="LongoMatch.Gui.Dialog.EntryDialog" design-size="339 175">
     <property name="MemberName" />
     <property name="Title" translatable="yes">Select template name</property>
     <property name="Icon">stock:longomatch Dialog</property>
@@ -2288,19 +2288,35 @@ new one.</property>
         <property name="MemberName" />
         <property name="BorderWidth">2</property>
         <child>
-          <widget class="Gtk.HBox" id="hbox2">
+          <widget class="Gtk.Table" id="table1">
             <property name="MemberName" />
-            <property name="Spacing">6</property>
+            <property name="NRows">3</property>
+            <property name="NColumns">2</property>
+            <property name="RowSpacing">6</property>
+            <property name="ColumnSpacing">6</property>
             <child>
-              <widget class="Gtk.Label" id="label2">
+              <widget class="Gtk.CheckButton" id="checkbutton">
                 <property name="MemberName" />
-                <property name="LabelProp" translatable="yes">Name:</property>
+                <property name="CanFocus">True</property>
+                <property name="Label" translatable="yes" />
+                <property name="DrawIndicator">True</property>
+                <property name="HasLabel">True</property>
+                <property name="UseUnderline">True</property>
+                <signal name="Toggled" handler="OnCheckbuttonToggled" />
               </widget>
               <packing>
-                <property name="Position">0</property>
-                <property name="AutoSize">True</property>
-                <property name="Expand">False</property>
-                <property name="Fill">False</property>
+                <property name="TopAttach">2</property>
+                <property name="BottomAttach">3</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
+                <property name="AutoSize">False</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">True</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">True</property>
+                <property name="YShrink">False</property>
               </packing>
             </child>
             <child>
@@ -2311,37 +2327,77 @@ new one.</property>
                 <property name="InvisibleChar">â??</property>
               </widget>
               <packing>
-                <property name="Position">1</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
+                <property name="AutoSize">False</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">True</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">True</property>
+                <property name="YShrink">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="Gtk.Label" id="existentemplatelabel">
+                <property name="MemberName" />
+                <property name="LabelProp" translatable="yes">Copy existent template:</property>
+              </widget>
+              <packing>
+                <property name="TopAttach">2</property>
+                <property name="BottomAttach">3</property>
                 <property name="AutoSize">True</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">True</property>
+                <property name="YShrink">False</property>
               </packing>
             </child>
-          </widget>
-          <packing>
-            <property name="Position">0</property>
-            <property name="AutoSize">True</property>
-            <property name="Expand">False</property>
-            <property name="Fill">False</property>
-          </packing>
-        </child>
-        <child>
-          <widget class="Gtk.HBox" id="hbox1">
-            <property name="MemberName" />
-            <property name="Visible">False</property>
-            <property name="Spacing">6</property>
             <child>
-              <widget class="Gtk.Label" id="label1">
+              <widget class="Gtk.Label" id="label2">
+                <property name="MemberName" />
+                <property name="Xalign">0</property>
+                <property name="LabelProp" translatable="yes">Name:</property>
+              </widget>
+              <packing>
+                <property name="AutoSize">True</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">True</property>
+                <property name="YShrink">False</property>
+              </packing>
+            </child>
+            <child>
+              <widget class="Gtk.Label" id="playerslabel">
                 <property name="MemberName" />
+                <property name="Xalign">0</property>
                 <property name="LabelProp" translatable="yes">Players:</property>
               </widget>
               <packing>
-                <property name="Position">0</property>
-                <property name="AutoSize">False</property>
-                <property name="Expand">False</property>
-                <property name="Fill">False</property>
+                <property name="TopAttach">1</property>
+                <property name="BottomAttach">2</property>
+                <property name="AutoSize">True</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">Fill</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">True</property>
+                <property name="YShrink">False</property>
               </packing>
             </child>
             <child>
-              <widget class="Gtk.SpinButton" id="spinbutton1">
+              <widget class="Gtk.SpinButton" id="playersspinbutton">
                 <property name="MemberName" />
                 <property name="CanFocus">True</property>
                 <property name="Lower">1</property>
@@ -2353,13 +2409,36 @@ new one.</property>
                 <property name="Value">15</property>
               </widget>
               <packing>
-                <property name="Position">1</property>
+                <property name="TopAttach">1</property>
+                <property name="BottomAttach">2</property>
+                <property name="LeftAttach">1</property>
+                <property name="RightAttach">2</property>
                 <property name="AutoSize">False</property>
-                <property name="Fill">False</property>
+                <property name="XOptions">Fill</property>
+                <property name="YOptions">0</property>
+                <property name="XExpand">False</property>
+                <property name="XFill">True</property>
+                <property name="XShrink">False</property>
+                <property name="YExpand">False</property>
+                <property name="YFill">False</property>
+                <property name="YShrink">False</property>
               </packing>
             </child>
           </widget>
           <packing>
+            <property name="Position">0</property>
+            <property name="AutoSize">False</property>
+            <property name="Expand">False</property>
+          </packing>
+        </child>
+        <child>
+          <widget class="Gtk.ComboBox" id="combobox">
+            <property name="MemberName" />
+            <property name="Sensitive">False</property>
+            <property name="IsTextCombo">True</property>
+            <property name="Items" translatable="yes" />
+          </widget>
+          <packing>
             <property name="Position">1</property>
             <property name="AutoSize">True</property>
             <property name="Expand">False</property>



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