static void bluetooth_state_changed (CcSharingPanel *self) { CcSharingPanelPrivate *priv = self->priv; gboolean state; state = get_boolean_property (priv->rfkill, "BluetoothHasAirplaneMode"); if (!state) { gtk_widget_hide (WID ("bluetooth-sharing-button")); return; } if (get_boolean_property (priv->rfkill, "BluetoothAirplaneMode") || get_boolean_property (priv->rfkill, "BluetoothHardwareAirplaneMode")) { gtk_widget_hide (WID ("bluetooth-sharing-button")); return; } gtk_widget_show (WID ("bluetooth-sharing-button")); }
status_t get_property_status(void) { return (get_boolean_property("ro.camera.sound.disabled", 0) || get_boolean_property("persist.sys.camera-mute", 0)) ? STATUS_DISABLED : STATUS_ENABLED; }