Merge lp:~renatofilho/indicator-server/fix-1204661 into lp:indicator-server

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Tony Espy
Approved revision: 240
Merged at revision: 237
Proposed branch: lp:~renatofilho/indicator-server/fix-1204661
Merge into: lp:indicator-server
Diff against target: 76 lines (+24/-16)
3 files modified
debian/changelog (+6/-0)
network/network-action-manager.vala (+10/-2)
network/network-menu.vala (+8/-14)
To merge this branch: bzr merge lp:~renatofilho/indicator-server/fix-1204661
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Tony Espy Approve
Review via email: mp+177449@code.launchpad.net

Commit message

Create the device enabled action even if the device is disabled during the service startup.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tony Espy (awe) wrote :

I built the package from the branch, installed on my mako and tested.

On the third reboot, it failed, with the Mobile data toggle showing disabled, whereas querying NM via DBus shows that "WwanEnabled" is "true". I also let the phone blank the screen and pull down the indicator again and the same thing occurs.

@Renato, where you actually able to get it to fail locally on a device?

Also, I was expecting to see a changelog entry too...

review: Needs Fixing
Revision history for this message
Tony Espy (awe) wrote :

Just to be sure, I re-tested with the pre-built .deb that Bill Filler pointed me at, and was still able to get it to fail.

238. By Renato Araujo Oliveira Filho

attempt to fix wrong 3g data information during the service startup.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
239. By Renato Araujo Oliveira Filho

Fixed device switch to update when the deivice state change on the background.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Tony Espy (awe) wrote :

I'm going to approve because the fix definitely makes things better, however that said, I have a few comments that need to be addresses either in the UI component of the next-generation back-end which is supposed to land soon...

First, I did get the 'Mobile data' switch to come up in the wrong position once, however I looked away for a few seconds and when I looked back, it had toggled to 'On'. Weird.

Most of the time, when the network indicator is displayed, it's painted empty, the network list is added, then the toggle switches which are both off, and they both slide to on in tandem. I hope this lag in painting of the UI isn't by design, because it looks pretty bad. Also, every 20s or so, the menu re-paints ( I think this might be the update of the scanned networks ), and the toggle again do their dance from off to on.

Lastly, as there's no changelog entry, I'm not 'happroving' till the merge is updated.

review: Approve
240. By Renato Araujo Oliveira Filho

bump version.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

change log updated

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-07-10 15:22:22 +0000
+++ debian/changelog 2013-07-31 02:33:28 +0000
@@ -1,3 +1,9 @@
1chewie (0.2.10) saucy; urgency=low
2
3 * Fixed device switcher state.
4
5 -- Renato Araujo Oliveira Filho <renato@canonical.com> Tue, 30 Jul 2013 23:29:40 -0300
6
1chewie (0.2.9) saucy; urgency=low7chewie (0.2.9) saucy; urgency=low
28
3 * new release with support for wifi/3g toggle 9 * new release with support for wifi/3g toggle
410
=== modified file 'network/network-action-manager.vala'
--- network/network-action-manager.vala 2013-07-04 17:48:08 +0000
+++ network/network-action-manager.vala 2013-07-31 02:33:28 +0000
@@ -321,15 +321,23 @@
321 {321 {
322 var wireless_enabled = new SimpleAction.stateful ("WirelessEnabled",322 var wireless_enabled = new SimpleAction.stateful ("WirelessEnabled",
323 VariantType.BOOLEAN,323 VariantType.BOOLEAN,
324 new Variant.boolean (client.wireless_get_enabled()));324 new Variant.boolean (false));
325 app.add_action (wireless_enabled);325 app.add_action (wireless_enabled);
326 wireless_enabled.change_state.connect(on_device_enabled);326 wireless_enabled.change_state.connect(on_device_enabled);
327 wireless_enabled.set_state (client.wireless_get_enabled());
328 client.notify["wireless-enabled"].connect((s, p) => {
329 wireless_enabled.set_state (client.wireless_get_enabled());
330 });
327 331
328 var mobile_data_enabled = new SimpleAction.stateful ("WwanEnabled",332 var mobile_data_enabled = new SimpleAction.stateful ("WwanEnabled",
329 VariantType.BOOLEAN,333 VariantType.BOOLEAN,
330 new Variant.boolean (client.wwan_get_enabled()));334 new Variant.boolean (false));
331 app.add_action (mobile_data_enabled);335 app.add_action (mobile_data_enabled);
332 mobile_data_enabled.change_state.connect(on_device_enabled);336 mobile_data_enabled.change_state.connect(on_device_enabled);
337 mobile_data_enabled.set_state (client.wwan_get_enabled());
338 client.notify["wwan-enabled"].connect((s, p) => {
339 mobile_data_enabled.set_state (client.wwan_get_enabled());
340 });
333341
334 client.device_added.connect ((client, device) => {add_device (device);});342 client.device_added.connect ((client, device) => {add_device (device);});
335 client.device_removed.connect ((client, device) => {remove_device (device);});343 client.device_removed.connect ((client, device) => {remove_device (device);});
336344
=== modified file 'network/network-menu.vala'
--- network/network-menu.vala 2013-07-04 01:49:38 +0000
+++ network/network-menu.vala 2013-07-31 02:33:28 +0000
@@ -326,21 +326,15 @@
326 326
327 // switch327 // switch
328 gmenu.insert_section(0, "Devices", devices_switch);328 gmenu.insert_section(0, "Devices", devices_switch);
329 if (client.wireless_hardware_get_enabled())329 MenuItem wireless_switch = new MenuItem("Wi-Fi", null);
330 {330 wireless_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
331 MenuItem wireless_switch = new MenuItem("Wi-Fi", null);331 wireless_switch.set_attribute ("action", "s", "WirelessEnabled");
332 wireless_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch"); 332 devices_switch.append_item (wireless_switch);
333 wireless_switch.set_attribute ("action", "s", "WirelessEnabled");
334 devices_switch.append_item (wireless_switch);
335 }
336333
337 if (client.wwan_hardware_get_enabled())334 MenuItem mobile_data_switch = new MenuItem("Mobile data", null);
338 {335 mobile_data_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
339 MenuItem mobile_data_switch = new MenuItem("Mobile data", null);336 mobile_data_switch.set_attribute ("action", "s", "WwanEnabled");
340 mobile_data_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");337 devices_switch.append_item (mobile_data_switch);
341 mobile_data_switch.set_attribute ("action", "s", "WwanEnabled");
342 devices_switch.append_item (mobile_data_switch);
343 }
344338
345 var devices = client.get_devices ();339 var devices = client.get_devices ();
346340

Subscribers

People subscribed via source and target branches