[gtk/matthiasc/for-main] inspector: Use more compact list styles
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-main] inspector: Use more compact list styles
- Date: Wed, 5 Oct 2022 03:25:29 +0000 (UTC)
commit a924b820c212fa1b5307b5a1e4d884128afc2813
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 4 23:23:54 2022 -0400
inspector: Use more compact list styles
Use the same style classes throughout for
data lists that benefit from smaller fonts.
gtk/inspector/menu.ui | 4 ++++
gtk/inspector/recorder.c | 1 -
gtk/inspector/recorder.ui | 8 ++++++++
3 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/gtk/inspector/menu.ui b/gtk/inspector/menu.ui
index 4820f4f718..6b3373b285 100644
--- a/gtk/inspector/menu.ui
+++ b/gtk/inspector/menu.ui
@@ -17,6 +17,10 @@
<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>
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 0dcd8d65e2..ef3383792c 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -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);
}
diff --git a/gtk/inspector/recorder.ui b/gtk/inspector/recorder.ui
index b9592ae39c..518c308ddd 100644
--- a/gtk/inspector/recorder.ui
+++ b/gtk/inspector/recorder.ui
@@ -135,6 +135,10 @@
<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>
@@ -174,6 +178,10 @@
<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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]