in the case that we cannot use the dbus command to disable wireless because the applet does not get updated (bug or not?) we can still want to build a c file that uses the nm function
checking the code if you pass to this function the applet and the status you want to set, it first calls setWirelessEnabled with that value, and then updates the applet menu.
The only difficould thing is how we can obtain the "instance" of the applet
in the case that we cannot use the dbus command to disable wireless because the applet does not get updated (bug or not?) we can still want to build a c file that uses the nm function
void nma_dbus_ enable_ wireless (NMApplet *applet, gboolean enabled)
checking the code if you pass to this function the applet and the status you want to set, it first calls setWirelessEnabled with that value, and then updates the applet menu.
The only difficould thing is how we can obtain the "instance" of the applet