Ticket #56 (new enhancement)

Opened 5 years ago

Make common _debug_dump_properties for FOs with no properties.

Reported by: tkg Assigned to:
Priority: minor Milestone: Future
Component: libfo Version: 0.5.x
Keywords: C Cc:
Blocking:

Description

Something like:

void
fo_marker_debug_dump_properties (FoFo *fo, gint depth)
{
  gchar *indent = g_strnfill (depth * 2, ' ');

  g_return_if_fail (fo != NULL);
  g_return_if_fail (FO_IS_MARKER (fo));

  g_log (G_LOG_DOMAIN,
	 G_LOG_LEVEL_DEBUG,
	 "%s(No properties)",
	 indent);

  g_free (indent);

  FO_FO_CLASS (parent_class)->debug_dump_properties (fo, depth + 1);
}