[gnome-boxes/wip/ui-files: 26/26] tmp



commit 0d15fa47c6030cb47fe41f8c51d2fed7f9f2b3a4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Feb 1 17:47:37 2014 +0100

    tmp

 data/ui/sidebar.ui  |   23 +++++++++++++++++++++++
 src/properties.vala |    4 ----
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/sidebar.ui b/data/ui/sidebar.ui
index 0e169a8..5ff829e 100644
--- a/data/ui/sidebar.ui
+++ b/data/ui/sidebar.ui
@@ -121,6 +121,29 @@
         <property name="visible">True</property>
         <property name="orientation">vertical</property>
         <property name="spacing">10</property>
+
+        <child>
+          <object class="GtkTreeView" id="props_treeview">
+            <property name="visible">True</property>
+            <property name="headers-visible">False</property>
+            <signal name="row_activated" handler="on_props_row_activated"/>
+            <style>
+              <class name="boxes-bg"/>
+            </style>
+
+            <child internal-child="selection">
+              <object class="GtkTreeSelection" id="props_selection">
+                <property name="mode">browse</property>
+              </object>
+            </child>
+          </object>
+
+          <packing>
+            <property name="expand">True</property>
+            <property name="fill">True</property>
+            <property name="padding">0</property>
+          </packing>
+        </child>
       </object>
     </child>
   </template>
diff --git a/src/properties.vala b/src/properties.vala
index 3148601..6d5bb94 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -213,9 +213,6 @@ private class Boxes.Properties: GLib.Object, Boxes.UI {
         var vbox = App.app.sidebar.get_nth_page (Boxes.SidebarPage.PROPERTIES) as Gtk.Box;
 
         tree_view = new Gtk.TreeView ();
-        tree_view.get_style_context ().add_class ("boxes-bg");
-        var selection = tree_view.get_selection ();
-        selection.set_mode (Gtk.SelectionMode.BROWSE);
         tree_view.activate_on_single_click = true;
         tree_view.row_activated.connect ( (treeview, path, column) => {
             Gtk.TreeIter filter_iter, iter;
@@ -229,7 +226,6 @@ private class Boxes.Properties: GLib.Object, Boxes.UI {
         model_filter.set_visible_column (1);
 
         tree_view.set_model (model_filter);
-        tree_view.headers_visible = false;
         var renderer = new CellRendererText ();
         renderer.xpad = 20;
         renderer.weight = Pango.Weight.BOLD;


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