From a0422bfe259998dd8f72d94e3330c152f28bb273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 2 Sep 2020 06:28:03 +0200 Subject: [PATCH] inspector: Fix huge listbox rows This is handled by .rich-list --- gtk/inspector/general.c | 15 ++------ gtk/inspector/general.ui | 80 ---------------------------------------- gtk/inspector/visual.ui | 76 -------------------------------------- 3 files changed, 3 insertions(+), 168 deletions(-) diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c index ab368e2f8d..87c91504dc 100644 --- a/gtk/inspector/general.c +++ b/gtk/inspector/general.c @@ -171,12 +171,7 @@ add_check_row (GtkInspectorGeneral *gen, GtkWidget *row, *box, *label, *check; box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40); - g_object_set (box, - "margin-start", 10 + indent, - "margin-end", 10, - "margin-top", 10, - "margin-bottom", 10, - NULL); + g_object_set (box, "margin-start", indent, NULL); label = gtk_label_new (name); gtk_widget_set_halign (label, GTK_ALIGN_START); @@ -213,12 +208,7 @@ add_label_row (GtkInspectorGeneral *gen, GtkWidget *row; box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40); - g_object_set (box, - "margin-start", 10 + indent, - "margin-end", 10, - "margin-top", 10, - "margin-bottom", 10, - NULL); + g_object_set (box, "margin-start", indent, NULL); label = gtk_label_new (name); gtk_widget_set_halign (label, GTK_ALIGN_START); @@ -572,6 +562,7 @@ populate_monitor (gpointer item, const char *model; list = GTK_LIST_BOX (gtk_list_box_new ()); + gtk_widget_add_css_class (GTK_WIDGET (list), "rich-list"); gtk_list_box_set_selection_mode (list, GTK_SELECTION_NONE); /* XXX: add monitor # here when porting to listview */ diff --git a/gtk/inspector/general.ui b/gtk/inspector/general.ui index d2b6f00f75..86cda44b82 100644 --- a/gtk/inspector/general.ui +++ b/gtk/inspector/general.ui @@ -26,10 +26,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -56,10 +52,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -86,10 +78,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -116,10 +104,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -146,10 +130,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -189,10 +169,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -220,10 +196,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -251,10 +223,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -282,10 +250,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -313,10 +277,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -344,10 +304,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -375,10 +331,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -419,10 +371,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -450,10 +398,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -480,10 +424,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -536,10 +476,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -567,10 +503,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -611,10 +543,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -642,10 +570,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -673,10 +597,6 @@ 0 - 10 - 10 - 10 - 10 40 diff --git a/gtk/inspector/visual.ui b/gtk/inspector/visual.ui index 3a04547536..7400edc46f 100644 --- a/gtk/inspector/visual.ui +++ b/gtk/inspector/visual.ui @@ -53,10 +53,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -81,10 +77,6 @@ - 10 - 10 - 10 - 10 40 @@ -110,10 +102,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -139,10 +127,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -172,10 +156,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -201,10 +181,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -230,10 +206,6 @@ 0 - 10 - 10 - 10 - 10 20 @@ -271,10 +243,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -309,10 +277,6 @@ 0 - 10 - 10 - 10 - 10 40 @@ -339,10 +303,6 @@ - 10 - 10 - 10 - 10 40 @@ -368,10 +328,6 @@ 0 - 10 - 10 - 10 - 10 20 @@ -422,10 +378,6 @@ - 10 - 10 - 10 - 10 40 @@ -451,10 +403,6 @@ - 10 - 10 - 10 - 10 40 @@ -480,10 +428,6 @@ - 10 - 10 - 10 - 10 40 @@ -509,10 +453,6 @@ - 10 - 10 - 10 - 10 40 @@ -538,10 +478,6 @@ - 10 - 10 - 10 - 10 40 @@ -567,10 +503,6 @@ - 10 - 10 - 10 - 10 40 @@ -610,10 +542,6 @@ - 10 - 10 - 10 - 10 40 @@ -638,10 +566,6 @@ - 10 - 10 - 10 - 10 40