[gtk+] inspector: Drop type name from node list



commit fe6d4cbdf5a2e09b10d8640b43f037accfbd2fe9
Author: Benjamin Otte <otte redhat com>
Date:   Fri Feb 5 19:31:03 2016 +0100

    inspector: Drop type name from node list
    
    It's not used anymore in the CSS, so people don't need to see it.

 gtk/inspector/css-node-tree.c  |    6 ------
 gtk/inspector/css-node-tree.ui |   28 +++++++---------------------
 2 files changed, 7 insertions(+), 27 deletions(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index e0c6c00..db2e820 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -47,7 +47,6 @@
 
 enum {
   COLUMN_NODE_NAME,
-  COLUMN_NODE_TYPE,
   COLUMN_NODE_VISIBLE,
   COLUMN_NODE_CLASSES,
   COLUMN_NODE_ID,
@@ -414,10 +413,6 @@ gtk_inspector_css_node_tree_get_node_value (GtkTreeModelCssNode *model,
       g_value_set_string (value, gtk_css_node_get_name (node));
       break;
 
-    case COLUMN_NODE_TYPE:
-      g_value_set_string (value, g_type_name (gtk_css_node_get_widget_type (node)));
-      break;
-
     case COLUMN_NODE_VISIBLE:
       g_value_set_boolean (value, gtk_css_node_get_visible (node));
       break;
@@ -457,7 +452,6 @@ gtk_inspector_css_node_tree_init (GtkInspectorCssNodeTree *cnt)
   priv->node_model = gtk_tree_model_css_node_new (gtk_inspector_css_node_tree_get_node_value,
                                                   N_NODE_COLUMNS,
                                                   G_TYPE_STRING,
-                                                  G_TYPE_STRING,
                                                   G_TYPE_BOOLEAN,
                                                   G_TYPE_STRING,
                                                   G_TYPE_STRING,
diff --git a/gtk/inspector/css-node-tree.ui b/gtk/inspector/css-node-tree.ui
index f34a3ac..0b24910 100644
--- a/gtk/inspector/css-node-tree.ui
+++ b/gtk/inspector/css-node-tree.ui
@@ -5,7 +5,6 @@
       <column type="gchararray"/>
       <column type="gchararray"/>
       <column type="gchararray"/>
-      <column type="gchararray"/>
       <column type="gint"/>
     </columns>
   </object>
@@ -89,19 +88,6 @@
                   </object>
                 </child>
                 <child>
-                  <object class="GtkTreeViewColumn">
-                    <property name="resizable">1</property>
-                    <property name="title" translatable="yes">Type</property>
-                    <child>
-                      <object class="GtkCellRendererText"/>
-                      <attributes>
-                        <attribute name="text">1</attribute>
-                        <attribute name="sensitive">2</attribute>
-                      </attributes>
-                    </child>
-                  </object>
-                </child>
-                <child>
                   <object class="GtkTreeViewColumn" id="node_name_column">
                     <property name="resizable">1</property>
                     <property name="title" translatable="yes">Name</property>
@@ -109,7 +95,7 @@
                       <object class="GtkCellRendererText"/>
                       <attributes>
                         <attribute name="text">0</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
@@ -121,8 +107,8 @@
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">4</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">3</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
@@ -134,8 +120,8 @@
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">3</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">2</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
@@ -147,8 +133,8 @@
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">5</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">4</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>


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