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 794171 - Fix warnings in Network panel code
Fix warnings in Network panel code
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:
Blocks:
 
 
Reported: 2018-03-08 11:14 UTC by Benjamin Berg
Modified: 2018-03-12 17:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Remove nagging code which removed from libnma (2.04 KB, patch)
2018-03-08 11:14 UTC, Benjamin Berg
committed Details | Review
network: Fix warning about missing cast to GtkWidget* (1.14 KB, patch)
2018-03-08 11:14 UTC, Benjamin Berg
committed Details | Review
network: Fix deprecation warning related to NMVpnConnectionStateReason (987 bytes, patch)
2018-03-08 11:14 UTC, Benjamin Berg
none Details | Review
network: Remove dead code trying to use NMConnection as NMActiveConnection (3.26 KB, patch)
2018-03-12 16:32 UTC, Benjamin Berg
committed Details | Review
network: Remove dead code trying to use NMConnection as NMActiveConnection (3.26 KB, patch)
2018-03-12 17:30 UTC, Benjamin Berg
committed Details | Review
network: Fix warning about missing cast to GtkWidget* (1.14 KB, patch)
2018-03-12 17:30 UTC, Benjamin Berg
committed Details | Review
network: Remove nagging code which removed from libnma (2.14 KB, patch)
2018-03-12 17:30 UTC, Benjamin Berg
committed Details | Review

Description Benjamin Berg 2018-03-08 11:14:23 UTC
.
Comment 1 Benjamin Berg 2018-03-08 11:14:28 UTC
Created attachment 369431 [details] [review]
network: Remove nagging code which removed from libnma

This has been removed long ago and there are only stubs left for g-c-c.

See also: https://bugzilla.gnome.org/show_bug.cgi?id=706964
Comment 2 Benjamin Berg 2018-03-08 11:14:33 UTC
Created attachment 369432 [details] [review]
network: Fix warning about missing cast to GtkWidget*
Comment 3 Benjamin Berg 2018-03-08 11:14:38 UTC
Created attachment 369433 [details] [review]
network: Fix deprecation warning related to NMVpnConnectionStateReason
Comment 4 Bastien Nocera 2018-03-09 15:30:49 UTC
Review of attachment 369431 [details] [review]:

What replaces this functionality though? Are certificate errors ignored all the time now?

Please link to a git web URL in the commit message, showing that nma_wifi_dialog_get_nag_ignored() always returns TRUE.
Comment 5 Bastien Nocera 2018-03-09 15:32:29 UTC
Review of attachment 369432 [details] [review]:

Sure.
Comment 6 Bastien Nocera 2018-03-09 15:33:24 UTC
Review of attachment 369433 [details] [review]:

Please copy the API docs that explain the enum renaming in the commit message.
Comment 7 Benjamin Berg 2018-03-12 16:32:58 UTC
Created attachment 369582 [details] [review]
network: Remove dead code trying to use NMConnection as NMActiveConnection

These code paths could never be hit as an NMConnection cannot be an
NMVpnConnection which is a descendant of NMActiveConnection.
Comment 8 Bastien Nocera 2018-03-12 17:15:27 UTC
Review of attachment 369582 [details] [review]:

That looks correct. Did you check that it still followed state correctly, or do we need to adapt this code instead of removing it?
Comment 9 Benjamin Berg 2018-03-12 17:29:17 UTC
Everything is working fine. The list of active connection changes, and things are matched against that reliably.
Comment 10 Benjamin Berg 2018-03-12 17:30:35 UTC
The following fixes have been pushed:
729db87 network: Remove dead code trying to use NMConnection as NMActiveConnection
72ef675 network: Fix warning about missing cast to GtkWidget*
3117e2d network: Remove nagging code which removed from libnma
Comment 11 Benjamin Berg 2018-03-12 17:30:41 UTC
Created attachment 369584 [details] [review]
network: Remove dead code trying to use NMConnection as NMActiveConnection

These code paths could never be hit as an NMConnection cannot be an
NMVpnConnection which is a descendant of NMActiveConnection.
Comment 12 Benjamin Berg 2018-03-12 17:30:47 UTC
Created attachment 369585 [details] [review]
network: Fix warning about missing cast to GtkWidget*
Comment 13 Benjamin Berg 2018-03-12 17:30:54 UTC
Created attachment 369586 [details] [review]
network: Remove nagging code which removed from libnma

This has been removed long ago and there are only stubs left for g-c-c.

See also:
- https://bugzilla.gnome.org/show_bug.cgi?id=706964
- https://git.gnome.org/browse/network-manager-applet/commit/?id=e21d598896ccd2c52850f52d21fe1d5aaa4e5410