After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 736291 - network: hide airplane switch when g-s-d says so
network: hide airplane switch when g-s-d says so
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on: 736290
Blocks:
 
 
Reported: 2014-09-08 22:40 UTC by Cosimo Cecchi
Modified: 2014-09-22 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: hide airplane switch when g-s-d says so (1.44 KB, patch)
2014-09-08 22:40 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2014-09-08 22:40:06 UTC
Depends on g-s-d patch from 736290
Comment 1 Cosimo Cecchi 2014-09-08 22:40:08 UTC
Created attachment 285688 [details] [review]
network: hide airplane switch when g-s-d says so
Comment 2 Bastien Nocera 2014-09-08 23:03:15 UTC
Review of attachment 285688 [details] [review]:

Note that this will also require a freeze break to land.

::: panels/network/cc-network-panel.c
@@ +302,3 @@
+
+        gtk_widget_set_visible (GTK_WIDGET (panel->priv->kill_switch_header), enabled && should_show);
+        if (!enabled || !should_show)

No, we still need to hook this up, otherwise your code to check for changed properties in g-s-d is useless.
Comment 3 Cosimo Cecchi 2014-09-08 23:10:53 UTC
(In reply to comment #2)
> 
> Note that this will also require a freeze break to land.

You mean UI freeze break? The UI won't really be changed, unless we fall into the category of machines affected by the patch...

> No, we still need to hook this up, otherwise your code to check for changed
> properties in g-s-d is useless.

Not sure I follow; the code I changed runs after the property notification has already been received and only controls the active state/visibility/sensitivity of the switch.
Comment 4 Bastien Nocera 2014-09-09 19:06:52 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > 
> > Note that this will also require a freeze break to land.
> 
> You mean UI freeze break? The UI won't really be changed, unless we fall into
> the category of machines affected by the patch...

Better safe than sorry.

> > No, we still need to hook this up, otherwise your code to check for changed
> > properties in g-s-d is useless.
> 
> Not sure I follow; the code I changed runs after the property notification has
> already been received and only controls the active state/visibility/sensitivity
> of the switch.

I missed the fact that it was in a sync_* call.
Comment 5 Bastien Nocera 2014-09-09 19:07:17 UTC
Review of attachment 285688 [details] [review]:

My mistake, looks good.
Comment 6 Bastien Nocera 2014-09-22 20:12:18 UTC
Attachment 285688 [details] pushed as 436d220 - network: hide airplane switch when g-s-d says so