Comment 4 for bug 95927

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

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