[longomatch/redesign3] Move the search entry outside the scrollbar



commit 35c72b5e7b4b6b6c73ee1e0e089896fe08ef1744
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Aug 22 00:04:01 2011 +0200

    Move the search entry outside the scrollbar

 .../LongoMatch.Gui.Component.ProjectListWidget.cs  |   58 +++++------
 LongoMatch/gtk-gui/gui.stetic                      |  100 +++++++++----------
 2 files changed, 74 insertions(+), 84 deletions(-)
---
diff --git a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectListWidget.cs b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectListWidget.cs
index c5fc46d..5b65cb7 100644
--- a/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectListWidget.cs
+++ b/LongoMatch/gtk-gui/LongoMatch.Gui.Component.ProjectListWidget.cs
@@ -4,9 +4,7 @@ namespace LongoMatch.Gui.Component
 {
 	public partial class ProjectListWidget
 	{
-		private global::Gtk.ScrolledWindow scrolledwindow2;
-
-		private global::Gtk.VBox vbox1;
+		private global::Gtk.VBox vbox2;
 
 		private global::Gtk.HBox hbox1;
 
@@ -14,6 +12,8 @@ namespace LongoMatch.Gui.Component
 
 		private global::Gtk.Entry filterEntry;
 
+		private global::Gtk.ScrolledWindow scrolledwindow2;
+
 		private global::Gtk.TreeView treeview;
 
 		protected virtual void Build ()
@@ -23,17 +23,10 @@ namespace LongoMatch.Gui.Component
 			global::Stetic.BinContainer.Attach (this);
 			this.Name = "LongoMatch.Gui.Component.ProjectListWidget";
 			// Container child LongoMatch.Gui.Component.ProjectListWidget.Gtk.Container+ContainerChild
-			this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
-			this.scrolledwindow2.CanFocus = true;
-			this.scrolledwindow2.Name = "scrolledwindow2";
-			// Container child scrolledwindow2.Gtk.Container+ContainerChild
-			global::Gtk.Viewport w1 = new global::Gtk.Viewport ();
-			w1.ShadowType = ((global::Gtk.ShadowType)(0));
-			// Container child GtkViewport.Gtk.Container+ContainerChild
-			this.vbox1 = new global::Gtk.VBox ();
-			this.vbox1.Name = "vbox1";
-			this.vbox1.Spacing = 6;
-			// Container child vbox1.Gtk.Box+BoxChild
+			this.vbox2 = new global::Gtk.VBox ();
+			this.vbox2.Name = "vbox2";
+			this.vbox2.Spacing = 6;
+			// Container child vbox2.Gtk.Box+BoxChild
 			this.hbox1 = new global::Gtk.HBox ();
 			this.hbox1.Name = "hbox1";
 			this.hbox1.Spacing = 6;
@@ -42,10 +35,10 @@ namespace LongoMatch.Gui.Component
 			this.filterlabel.Name = "filterlabel";
 			this.filterlabel.LabelProp = global::Mono.Unix.Catalog.GetString ("Projects Search:");
 			this.hbox1.Add (this.filterlabel);
-			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.filterlabel]));
-			w2.Position = 0;
-			w2.Expand = false;
-			w2.Fill = false;
+			global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.filterlabel]));
+			w1.Position = 0;
+			w1.Expand = false;
+			w1.Fill = false;
 			// Container child hbox1.Gtk.Box+BoxChild
 			this.filterEntry = new global::Gtk.Entry ();
 			this.filterEntry.CanFocus = true;
@@ -53,23 +46,26 @@ namespace LongoMatch.Gui.Component
 			this.filterEntry.IsEditable = true;
 			this.filterEntry.InvisibleChar = 'â';
 			this.hbox1.Add (this.filterEntry);
-			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.filterEntry]));
-			w3.Position = 1;
-			this.vbox1.Add (this.hbox1);
-			global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
-			w4.Position = 0;
-			w4.Expand = false;
-			w4.Fill = false;
-			// Container child vbox1.Gtk.Box+BoxChild
+			global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.filterEntry]));
+			w2.Position = 1;
+			this.vbox2.Add (this.hbox1);
+			global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.hbox1]));
+			w3.Position = 0;
+			w3.Expand = false;
+			w3.Fill = false;
+			// Container child vbox2.Gtk.Box+BoxChild
+			this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
+			this.scrolledwindow2.CanFocus = true;
+			this.scrolledwindow2.Name = "scrolledwindow2";
+			// Container child scrolledwindow2.Gtk.Container+ContainerChild
 			this.treeview = new global::Gtk.TreeView ();
 			this.treeview.CanFocus = true;
 			this.treeview.Name = "treeview";
-			this.vbox1.Add (this.treeview);
-			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox1[this.treeview]));
+			this.scrolledwindow2.Add (this.treeview);
+			this.vbox2.Add (this.scrolledwindow2);
+			global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow2]));
 			w5.Position = 1;
-			w1.Add (this.vbox1);
-			this.scrolledwindow2.Add (w1);
-			this.Add (this.scrolledwindow2);
+			this.Add (this.vbox2);
 			if ((this.Child != null)) {
 				this.Child.ShowAll ();
 			}
diff --git a/LongoMatch/gtk-gui/gui.stetic b/LongoMatch/gtk-gui/gui.stetic
index 42d043e..de84e9d 100644
--- a/LongoMatch/gtk-gui/gui.stetic
+++ b/LongoMatch/gtk-gui/gui.stetic
@@ -823,67 +823,61 @@
   <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.ProjectListWidget" design-size="572 300">
     <property name="MemberName" />
     <child>
-      <widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
+      <widget class="Gtk.VBox" id="vbox2">
         <property name="MemberName" />
-        <property name="CanFocus">True</property>
+        <property name="Spacing">6</property>
         <child>
-          <widget class="Gtk.Viewport" id="GtkViewport">
+          <widget class="Gtk.HBox" id="hbox1">
             <property name="MemberName" />
-            <property name="ShadowType">None</property>
+            <property name="Spacing">6</property>
             <child>
-              <widget class="Gtk.VBox" id="vbox1">
+              <widget class="Gtk.Label" id="filterlabel">
                 <property name="MemberName" />
-                <property name="Spacing">6</property>
-                <child>
-                  <widget class="Gtk.HBox" id="hbox1">
-                    <property name="MemberName" />
-                    <property name="Spacing">6</property>
-                    <child>
-                      <widget class="Gtk.Label" id="filterlabel">
-                        <property name="MemberName" />
-                        <property name="LabelProp" translatable="yes">Projects Search:</property>
-                      </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.Entry" id="filterEntry">
-                        <property name="MemberName" />
-                        <property name="CanFocus">True</property>
-                        <property name="IsEditable">True</property>
-                        <property name="InvisibleChar">â</property>
-                        <signal name="Changed" handler="OnFilterentryChanged" />
-                      </widget>
-                      <packing>
-                        <property name="Position">1</property>
-                        <property name="AutoSize">True</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.TreeView" id="treeview">
-                    <property name="MemberName">treeview</property>
-                    <property name="CanFocus">True</property>
-                  </widget>
-                  <packing>
-                    <property name="Position">1</property>
-                    <property name="AutoSize">True</property>
-                  </packing>
-                </child>
+                <property name="LabelProp" translatable="yes">Projects Search:</property>
+              </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.Entry" id="filterEntry">
+                <property name="MemberName" />
+                <property name="CanFocus">True</property>
+                <property name="IsEditable">True</property>
+                <property name="InvisibleChar">â</property>
+                <signal name="Changed" handler="OnFilterentryChanged" />
+              </widget>
+              <packing>
+                <property name="Position">1</property>
+                <property name="AutoSize">True</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.ScrolledWindow" id="scrolledwindow2">
+            <property name="MemberName" />
+            <property name="CanFocus">True</property>
+            <child>
+              <widget class="Gtk.TreeView" id="treeview">
+                <property name="MemberName">treeview</property>
+                <property name="CanFocus">True</property>
               </widget>
             </child>
           </widget>
+          <packing>
+            <property name="Position">1</property>
+            <property name="AutoSize">True</property>
+          </packing>
         </child>
       </widget>
     </child>



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