GNOME Bugzilla – Bug 719339
rfkill: Add Bluetooth killswitch support
Last modified: 2013-11-26 16:50:33 UTC
.
Created attachment 262816 [details] [review] rfkill: Add Bluetooth killswitch support
Review of attachment 262816 [details] [review]: ::: plugins/rfkill/gsd-rfkill-manager.c @@ +101,2 @@ static gboolean +engine_get_bluetooth_airplane_mode (GsdRfkillManager *manager) This would probably be a bit cleaner with a helper method. any_killswitch_has_state (manager->priv->bt_killswitches, RFKILL_STATE_UNBLOCKED); @@ +140,3 @@ + /* A single rfkill switch that's not hw blocked? Hw airplane mode is off */ + if (state != RFKILL_STATE_HARD_BLOCKED) { + return FALSE; Should this not have braces, or should the method above not have it?
Fixed the comments in subsequent patches.