I have a few child widgets that I’m trying to have the visibility be toggle-able using GObject properties. Something like this would show the tray icons, and hide the launcher and user icon:
g_object_set(panel, "show-tray", TRUE, "show-launcher", FALSE, "show-user", FALSE);
However, this apparently does not work when using a GtkBuilder file.The strangest thing that I found with this in testing is that the icons toggle just fine in the Glade UI builder application. The class is called ExpidusWidgetsPanel` and the code for it is on the ExpidusOS Shell GitHub, which I have linked, and is under src/widgets/panel.c. The widget builds partly from a Glade file, that might affect the outcome of the result but I don’t think so.
GitHub: shorturl.at/aqBC6 (Note that I had to shorten it since Discourse seems to be a bit weird with anti-spam)