Merge lp:~kvalo/indicator-network/indicator-name-owner into lp:indicator-network/0.2

Proposed by Kalle Valo
Status: Merged
Merged at revision: 80
Proposed branch: lp:~kvalo/indicator-network/indicator-name-owner
Merge into: lp:indicator-network/0.2
Diff against target: 32 lines (+6/-10)
1 file modified
src/indicator-network.c (+6/-10)
To merge this branch: bzr merge lp:~kvalo/indicator-network/indicator-name-owner
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Review via email: mp+35002@code.launchpad.net
To post a comment you must log in.
Revision history for this message
David Barth (dbarth) wrote :

Sounds fine in this case, as you're monitoring the network service, and not connman itself. I can confirm that the indicator is indeed updated across service restarts with this change.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-network.c'
2--- src/indicator-network.c 2010-08-04 10:24:51 +0000
3+++ src/indicator-network.c 2010-09-09 16:33:49 +0000
4@@ -148,23 +148,19 @@
5 {
6 g_return_val_if_fail (IS_INDICATOR_NETWORK (self), NULL);
7
8- GError *error = NULL;
9 DBusGConnection *bus;
10
11 if (self->network_dbus_proxy != NULL)
12 return self->network_dbus_proxy;
13
14 bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
15- self->network_dbus_proxy = dbus_g_proxy_new_for_name_owner(bus,
16- INDICATOR_NETWORK_DBUS_NAME,
17- INDICATOR_NETWORK_SERVICE_DBUS_OBJECT,
18- INDICATOR_NETWORK_SERVICE_DBUS_INTERFACE,
19- &error);
20+ self->network_dbus_proxy = dbus_g_proxy_new_for_name(bus,
21+ INDICATOR_NETWORK_DBUS_NAME,
22+ INDICATOR_NETWORK_SERVICE_DBUS_OBJECT,
23+ INDICATOR_NETWORK_SERVICE_DBUS_INTERFACE);
24
25- if (error != NULL) {
26- g_warning("Unable to get network dbus proxy: %s", error->message);
27- g_error_free(error);
28- self->network_dbus_proxy = NULL;
29+ if (self->network_dbus_proxy == NULL) {
30+ g_warning("Unable to get network dbus proxy");
31 return NULL;
32 }
33

Subscribers

People subscribed via source and target branches