inspector: Use more compact list styles
authorMatthias Clasen <mclasen@redhat.com>
Wed, 5 Oct 2022 03:23:54 +0000 (23:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Oct 2022 03:25:12 +0000 (23:25 -0400)
Use the same style classes throughout for
data lists that benefit from smaller fonts.

gtk/inspector/menu.ui
gtk/inspector/recorder.c
gtk/inspector/recorder.ui

index 4820f4f7185cf632b50172d3a149ddc007065e82..6b3373b28597c7e54eeb7c1f3b2a69cc9cda895c 100644 (file)
         <property name="vscrollbar-policy">always</property>
         <child>
           <object class="GtkColumnView" id="view">
+            <style>
+              <class name="data-table"/>
+              <class name="list"/>
+            </style>
             <child>
               <object class="GtkColumnViewColumn">
                 <property name="title" translatable="yes">Label</property>
index 0dcd8d65e21b0a37e979ffc5e846b23dab0544ab..ef3383792c8f42ab6f013488f7212ee76edc100c 100644 (file)
@@ -594,7 +594,6 @@ setup_label (GtkSignalListItemFactory *factory,
 
   label = gtk_label_new (NULL);
   gtk_label_set_xalign (GTK_LABEL (label), 0.);
-  gtk_widget_set_valign (label, GTK_ALIGN_START);
   gtk_list_item_set_child (list_item, label);
 }
 
index b9592ae39c63d40f2b732024e3cfcac435b35722..518c308ddd778ea74c74a80973c868eb31d6e583 100644 (file)
                                 <property name="propagate-natural-width">1</property>
                                 <child>
                                   <object class="GtkColumnView" id="node_property_tree">
+                                    <style>
+                                      <class name="data-table"/>
+                                      <class name="list"/>
+                                    </style>
                                     <child>
                                       <object class="GtkColumnViewColumn">
                                         <property name="title" translatable="yes">Property</property>
                             <property name="propagate-natural-width">1</property>
                             <child>
                               <object class="GtkColumnView" id="event_property_tree">
+                                <style>
+                                  <class name="data-table"/>
+                                  <class name="list"/>
+                                </style>
                                 <child>
                                   <object class="GtkColumnViewColumn">
                                     <property name="title" translatable="yes">Property</property>