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 703411 - network: Use gnome-settings-daemon interface for switching on/off Airplane Mode
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-01 18:15 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-07-18 01:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode (20.19 KB, patch)
2013-07-01 18:15 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode (20.13 KB, patch)
2013-07-16 17:12 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode (20.37 KB, patch)
2013-07-17 07:59 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode (20.37 KB, patch)
2013-07-17 08:01 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-07-01 18:15:52 UTC
Having this in one place is a lot cleaner.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-07-01 18:15:54 UTC
Created attachment 248177 [details] [review]
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode
Comment 2 Bastien Nocera 2013-07-05 08:36:34 UTC
Review of attachment 248177 [details] [review]:

The D-Bus API has changed, so this will need updating.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-07-16 17:12:30 UTC
Created attachment 249296 [details] [review]
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode

Having this in one place is a lot cleaner.
Comment 4 Bastien Nocera 2013-07-17 07:14:28 UTC
Review of attachment 249296 [details] [review]:

::: panels/network/cc-network-panel.c
@@ +287,3 @@
+                           -1,
+                           priv->cancellable,
+                           set_brightness_cb,

set_brightness_cb?

@@ +305,1 @@
+        g_variant_get (result, "b", &enabled);

enabled = g_variant_get_boolean (result);

@@ +324,3 @@
+        panel->priv->rfkill_proxy = g_dbus_proxy_new_for_bus_finish (res, &error);
+        if (panel->priv->rfkill_proxy == NULL) {
+                g_printerr ("Error creating proxy: %s\n", error->message);

"creating rfkill proxy"
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-07-17 07:59:43 UTC
Created attachment 249364 [details] [review]
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode

Having this in one place is a lot cleaner.
Comment 6 Jasper St. Pierre (not reading bugmail) 2013-07-17 08:01:53 UTC
Created attachment 249365 [details] [review]
network: Use gnome-settings-daemon interface for switching on/off Airplane Mode

Having this in one place is a lot cleaner.
Comment 7 Bastien Nocera 2013-07-17 08:12:57 UTC
Review of attachment 249365 [details] [review]:

::: panels/network/cc-network-panel.c
@@ +80,2 @@
         /* Killswitch stuff */
+        GDBusProxy       *rfkill_proxy;

Missing an unref in ->dispose.

Looks good after that.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-07-18 01:13:24 UTC
Attachment 249365 [details] pushed as 085e769 - network: Use gnome-settings-daemon interface for switching on/off Airplane Mode