[rygel] ui: Declare cell renderer in glade



commit 347a819e93fe851cad68ba3f3bed7bf2f10da6ac
Author: Jens Georg <jensg openismus com>
Date:   Fri May 10 22:56:54 2013 +0200

    ui: Declare cell renderer in glade

 data/rygel-preferences.ui            |   20 ++++++++++++++++----
 src/ui/rygel-media-pref-section.vala |    6 ------
 2 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/data/rygel-preferences.ui b/data/rygel-preferences.ui
index fada139..90ea95a 100644
--- a/data/rygel-preferences.ui
+++ b/data/rygel-preferences.ui
@@ -59,6 +59,18 @@
                         <child internal-child="selection">
                           <object class="GtkTreeSelection" id="treeview-selection"/>
                         </child>
+                        <child>
+                          <object class="GtkTreeViewColumn" id="treeviewcolumn1">
+                            <property name="sizing">fixed</property>
+                            <property name="title" translatable="yes">column</property>
+                            <child>
+                              <object class="GtkCellRendererText" id="cellrenderertext1"/>
+                              <attributes>
+                                <attribute name="text">0</attribute>
+                              </attributes>
+                            </child>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>
@@ -240,6 +252,10 @@
       <action-widget response="-7">button3</action-widget>
     </action-widgets>
   </object>
+  <object class="GtkSizeGroup" id="general-labels-sizegroup">
+    <property name="mode">both</property>
+  </object>
+  <object class="GtkSizeGroup" id="plugin-labels-sizegroup"/>
   <object class="GtkFileChooserDialog" id="uris-dialog">
     <property name="can_focus">False</property>
     <property name="can_default">True</property>
@@ -313,10 +329,6 @@
       <action-widget response="-5">button5</action-widget>
     </action-widgets>
   </object>
-  <object class="GtkSizeGroup" id="general-labels-sizegroup">
-    <property name="mode">both</property>
-  </object>
-  <object class="GtkSizeGroup" id="plugin-labels-sizegroup"/>
   <object class="GtkListStore" id="uris-liststore">
     <columns>
       <!-- column-name path -->
diff --git a/src/ui/rygel-media-pref-section.vala b/src/ui/rygel-media-pref-section.vala
index e05234b..5f09f2f 100644
--- a/src/ui/rygel-media-pref-section.vala
+++ b/src/ui/rygel-media-pref-section.vala
@@ -57,12 +57,6 @@ public class Rygel.MediaPrefSection : PreferencesSection {
         this.dialog = (FileChooserDialog) builder.get_object (URIS_DIALOG);
         assert (this.dialog != null);
 
-        treeview.insert_column_with_attributes (-1,
-                                                "paths",
-                                                new CellRendererText (),
-                                                "text",
-                                                0,
-                                                null);
         this.widgets.add (this.treeview);
 
         try {


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