Looking for GUI-based tool to "poke" window and have it report Component hierarchy

I would like to locate the code relevant to components of the Synaptic tool, specifically the windows for

  • Downloading Package Information (show individual files), and
  • Applying Changes (Terminal Output).

I would like to find a tool (with ability to set preferences) so that I can click on these windows and it would report the details relevant to the specific component (widget) that relates to it, namely, to give me

  • the 2 or 3 generations of parents, and
  • the 2 or 3 generations of children.

I am aware of the existence of GTK Inspector, but that seems like way too much detail. I am hoping for something far simpler, maybe like a mouse-over display (pop-up?) or click+display for a single element.

Can anyone offer suggestions or the forum most likely to provide something useful as a possible candidate for such a tool?

This might be a stretch, but something like the "Web Developer Tools" plug-in for Firefox, but intended to probe GTK-based applications, would be nice.

Just an idea. Would not it be more straightforward and easier to browse through Synaptic source code?

Say, Debian -- Details of source package synaptic in buster

I have already downloaded the source for synaptic from the master site.

I am having difficulty navigating thru all that.

I've located two relevant files:

==================================================================================================================
./synaptic-0.91.3/gtk/rgmainwindow.cc.Oasis

2855:void RGMainWindow::cbUpdateClicked(GtkWidget *self, void *data)

2865:   progress->setDescription(_("Downloading Package Information"),


==================================================================================================================
./synaptic-0.91.3/gtk/gtkbuilder/window_zvtinstallprogress.ui.Oasis

4:  <object class="GtkWindow" id="window_zvtinstallprogress">

64:                        <property name="label" translatable="yes">&lt;b&gt;Terminal Output:&lt;/b&gt;</property>

but I don't recognize where I could auto-adjust both windows to full-screen width. I only see specifications of terminal size, based on characters of 80x25 for each. As a hack, I have replaced those with 140x28, but I don't want to rebuild/install synaptic until I've managed what I really want to do, as outlined below.

==================================================================================================================
./synaptic-0.91.3/gtk/rgterminstallprogress.cc.Oasis

69c69
<    vte_terminal_set_size(VTE_TERMINAL(_term),80,23);
---
>    vte_terminal_set_size(VTE_TERMINAL(_term),140,28);



==================================================================================================================
./synaptic-0.91.3/gtk/rgdebinstallprogress.cc.Oasis

367c367
<    vte_terminal_set_size(VTE_TERMINAL(_term),80,23);
---
>    vte_terminal_set_size(VTE_TERMINAL(_term),140,28);

I would also like to add a button to each, so that a user would have the option to save the "log" of those sessions to a disk file at a location of my choosing, using nomenclature also of my choosing. The only problem I have is that the sessions seem to have max lines of 10,000 lines, and I don't know if that is more than is ever needed, or if there is a way to have that set to unlimited, which is what I have for my "regular" terminal sessions.

But, I know nothing about GTK programming, so I am exploring as best I can to figure this out. Which is why I was looking for a tool as I outlined earlier.