[tracker/tracker-0.12: 196/202] tracker-needle: Put the tags list in a GtkPaned



commit afd4234bb92246f49457ffaec8383f152a653a9c
Author: Carlos Garnacho <carlos lanedo com>
Date:   Thu Oct 6 14:44:51 2011 +0200

    tracker-needle: Put the tags list in a GtkPaned
    
    This is to make it resizable within the view.

 src/tracker-needle/tracker-needle.ui   |   34 ++++++++++++++++++++-----------
 src/tracker-needle/tracker-needle.vala |    4 ++-
 2 files changed, 25 insertions(+), 13 deletions(-)
---
diff --git a/src/tracker-needle/tracker-needle.ui b/src/tracker-needle/tracker-needle.ui
index cd10afd..07cac58 100644
--- a/src/tracker-needle/tracker-needle.ui
+++ b/src/tracker-needle/tracker-needle.ui
@@ -400,20 +400,30 @@
 	  </packing>
         </child>
         <child>
-          <object class="GtkHBox" id="hbox_view">
+          <object class="GtkHPaned" id="hpaned">
             <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="spacing">6</property>
+            <property name="position">500</property>
             <child>
-              <placeholder/>
-            </child>
-          </object>
-          <packing>
-            <property name="expand">True</property>
-            <property name="fill">True</property>
-            <property name="position">2</property>
-          </packing>
-        </child>
+	      <object class="GtkHBox" id="hbox_view">
+		<property name="visible">True</property>
+		<property name="can_focus">False</property>
+		<property name="spacing">6</property>
+		<child>
+		  <placeholder/>
+		</child>
+	      </object>
+	      <packing>
+		<property name="resize">True</property>
+		<property name="shrink">False</property>
+	      </packing>
+	    </child>
+	  </object>
+	  <packing>
+	    <property name="expand">True</property>
+	    <property name="fill">True</property>
+	    <property name="position">2</property>
+	  </packing>
+	</child>
       </object>
     </child>
   </object>
diff --git a/src/tracker-needle/tracker-needle.vala b/src/tracker-needle/tracker-needle.vala
index 6a72419..424ad34 100644
--- a/src/tracker-needle/tracker-needle.vala
+++ b/src/tracker-needle/tracker-needle.vala
@@ -242,6 +242,7 @@ public class Tracker.Needle {
 		var builder = new Gtk.Builder ();
 		Button info_bar_button;
 		Toolbar toolbar;
+		Paned paned;
 
 		try {
 			//try load from source tree first.
@@ -341,9 +342,10 @@ public class Tracker.Needle {
 		view.pack_start (sw_icons, true, true, 0);
 
 		// Set up tags_filter
+		paned = builder.get_object ("hpaned") as Paned;
 		tags_filter = new TrackerTagsFilter ();
 		tags_filter.hide ();
-		view.pack_end (tags_filter, false, true, 0);
+		paned.pack2 (tags_filter, false, false);
 		tags_filter.selection_changed.connect (tags_filter_selection_changed);
 
 		view_categories.set_active (true);



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