GNOME Bugzilla – Bug 771148
power: Fix hiding wi-fi, mobile broadband toggles
Last modified: 2016-09-15 18:27:31 UTC
This is broken in gnome-3-20 (but fixed differently in master)
Created attachment 335223 [details] [review] power: Fix hiding wi-fi, mobile broadband toggles We check with NetworkManager whether a wireless device exists to decide whether or not to display these toggles. NetworkManager says no, we hide the toggles, then we call gtk_widget_show_all() and undo our work. Sad! Actually pressing the toggles triggers the check again, and causes both listbox rows to shockingly disappear. This fix is not needed on the master branch because, since the port to libnm 1.2, the check is now scheduled on the main loop, to run after this function completes, inadvertantly fixing this bug.
Review of attachment 335223 [details] [review]: Sure.
Attachment 335223 [details] pushed as 601164d - power: Fix hiding wi-fi, mobile broadband toggles