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
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-07-10 15:22:22 +0000
3+++ debian/changelog 2013-07-31 02:33:28 +0000
4@@ -1,3 +1,9 @@
5+chewie (0.2.10) saucy; urgency=low
6+
7+ * Fixed device switcher state.
8+
9+ -- Renato Araujo Oliveira Filho <renato@canonical.com> Tue, 30 Jul 2013 23:29:40 -0300
10+
11 chewie (0.2.9) saucy; urgency=low
12
13 * new release with support for wifi/3g toggle
14
15=== modified file 'network/network-action-manager.vala'
16--- network/network-action-manager.vala 2013-07-04 17:48:08 +0000
17+++ network/network-action-manager.vala 2013-07-31 02:33:28 +0000
18@@ -321,15 +321,23 @@
19 {
20 var wireless_enabled = new SimpleAction.stateful ("WirelessEnabled",
21 VariantType.BOOLEAN,
22- new Variant.boolean (client.wireless_get_enabled()));
23+ new Variant.boolean (false));
24 app.add_action (wireless_enabled);
25 wireless_enabled.change_state.connect(on_device_enabled);
26+ wireless_enabled.set_state (client.wireless_get_enabled());
27+ client.notify["wireless-enabled"].connect((s, p) => {
28+ wireless_enabled.set_state (client.wireless_get_enabled());
29+ });
30
31 var mobile_data_enabled = new SimpleAction.stateful ("WwanEnabled",
32 VariantType.BOOLEAN,
33- new Variant.boolean (client.wwan_get_enabled()));
34+ new Variant.boolean (false));
35 app.add_action (mobile_data_enabled);
36 mobile_data_enabled.change_state.connect(on_device_enabled);
37+ mobile_data_enabled.set_state (client.wwan_get_enabled());
38+ client.notify["wwan-enabled"].connect((s, p) => {
39+ mobile_data_enabled.set_state (client.wwan_get_enabled());
40+ });
41
42 client.device_added.connect ((client, device) => {add_device (device);});
43 client.device_removed.connect ((client, device) => {remove_device (device);});
44
45=== modified file 'network/network-menu.vala'
46--- network/network-menu.vala 2013-07-04 01:49:38 +0000
47+++ network/network-menu.vala 2013-07-31 02:33:28 +0000
48@@ -326,21 +326,15 @@
49
50 // switch
51 gmenu.insert_section(0, "Devices", devices_switch);
52- if (client.wireless_hardware_get_enabled())
53- {
54- MenuItem wireless_switch = new MenuItem("Wi-Fi", null);
55- wireless_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
56- wireless_switch.set_attribute ("action", "s", "WirelessEnabled");
57- devices_switch.append_item (wireless_switch);
58- }
59+ MenuItem wireless_switch = new MenuItem("Wi-Fi", null);
60+ wireless_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
61+ wireless_switch.set_attribute ("action", "s", "WirelessEnabled");
62+ devices_switch.append_item (wireless_switch);
63
64- if (client.wwan_hardware_get_enabled())
65- {
66- MenuItem mobile_data_switch = new MenuItem("Mobile data", null);
67- mobile_data_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
68- mobile_data_switch.set_attribute ("action", "s", "WwanEnabled");
69- devices_switch.append_item (mobile_data_switch);
70- }
71+ MenuItem mobile_data_switch = new MenuItem("Mobile data", null);
72+ mobile_data_switch.set_attribute ("x-canonical-type", "s", "com.canonical.indicator.switch");
73+ mobile_data_switch.set_attribute ("action", "s", "WwanEnabled");
74+ devices_switch.append_item (mobile_data_switch);
75
76 var devices = client.get_devices ();
77

Subscribers

People subscribed via source and target branches