tools: gst-inspect: add vertical spacing between properties and signals

Makes it easier to read and less squashed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5206>
This commit is contained in:
Tim-Philipp Müller 2023-03-28 19:56:14 +01:00
parent c2c2bc2ec2
commit aa018007b5

View file

@ -432,6 +432,7 @@ print_object_properties_info (GObject * obj, GObjectClass * obj_class,
(GCompareDataFunc) sort_gparamspecs, NULL);
n_print ("%s%s%s:\n", HEADING_COLOR, desc, RESET_COLOR);
n_print ("\n");
push_indent ();
@ -780,6 +781,8 @@ print_object_properties_info (GObject * obj, GObjectClass * obj_class,
pop_indent_n (11);
g_value_reset (&value);
n_print ("\n");
}
if (num_properties == 0)
n_print ("%snone%s\n", PROP_VALUE_COLOR, RESET_COLOR);
@ -1122,6 +1125,7 @@ print_signal_info (GstElement * element)
n_print ("%sElement Signals%s:\n", HEADING_COLOR, RESET_COLOR);
else
n_print ("%sElement Actions%s:\n", HEADING_COLOR, RESET_COLOR);
n_print ("\n");
} else {
continue;
}
@ -1170,6 +1174,7 @@ print_signal_info (GstElement * element)
g_print (");\n");
g_free (indent);
g_print ("\n");
}
if (found_signals) {