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 777179 - [PATCH] network: switch from libnm-glib to libnm
[PATCH] network: switch from libnm-glib to libnm
Status: RESOLVED FIXED
Product: gnome-initial-setup
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Initial Setup maintainer(s)
GNOME Initial Setup maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-01-12 16:38 UTC by Lubomir Rintel
Modified: 2017-02-23 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] network: switch from libnm-glib to libnm (23.79 KB, patch)
2017-01-12 16:38 UTC, Lubomir Rintel
none Details | Review
[PATCH v2] network: switch from libnm-glib to libnm (23.97 KB, patch)
2017-02-22 12:18 UTC, Lubomir Rintel
committed Details | Review

Description Lubomir Rintel 2017-01-12 16:38:12 UTC
Created attachment 343381 [details] [review]
[PATCH] network: switch from libnm-glib to libnm

Initial setup is one of the few components that keep NetworkManager-glib in distribution. Let's fix that.
Comment 1 Lubomir Rintel 2017-01-23 09:09:39 UTC
Ping?
Comment 2 Rui Matos 2017-01-26 19:06:35 UTC
Review of attachment 343381 [details] [review]:

thanks for the patch!

::: gnome-initial-setup/pages/network/gis-network-page.c
@@ +91,3 @@
       /* is this the same type and data? */
+      if (nm_utils_same_ssid (g_bytes_get_data (ssid, NULL), g_bytes_get_size (ssid),
+                              g_bytes_get_data (ssid, NULL), g_bytes_get_size (ssid_tmp), TRUE)) {

ssid_tmp on the second line's first argument?

@@ +411,1 @@
+  connection = nm_client_activate_connection_finish (client, result, &error);

isn't this leaked?

@@ +428,3 @@
+  GError *error = NULL;
+
+  connection = nm_client_add_and_activate_connection_finish (client, result, &error);

leaked?

::: gnome-initial-setup/pages/network/network-dialogs.c
@@ +80,3 @@
+	GError *error = NULL;
+
+	connection = nm_client_activate_connection_finish (client, result, &error);

this is leaked, no?

@@ +96,3 @@
+	GError *error = NULL;
+
+	connection = nm_client_add_and_activate_connection_finish (client, result, &error);

leaked?
Comment 3 Lubomir Rintel 2017-02-22 12:18:12 UTC
Created attachment 346429 [details] [review]
[PATCH v2] network: switch from libnm-glib to libnm

Thanks for the review.

Updated version of the patch, fixes all of the above.
Comment 4 Rui Matos 2017-02-22 12:58:30 UTC
Review of attachment 346429 [details] [review]:

Please add this bug's URL to the commit message. Otherwise looks good, thanks
Comment 5 Rui Matos 2017-02-23 12:35:39 UTC
IIRC you don't have gnome git access so I'll push it. You should ask
for that git account :-)