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
=== modified file 'src/indicator-network.c'
--- src/indicator-network.c 2010-08-04 10:24:51 +0000
+++ src/indicator-network.c 2010-09-09 16:33:49 +0000
@@ -148,23 +148,19 @@
148{148{
149 g_return_val_if_fail (IS_INDICATOR_NETWORK (self), NULL);149 g_return_val_if_fail (IS_INDICATOR_NETWORK (self), NULL);
150150
151 GError *error = NULL;
152 DBusGConnection *bus;151 DBusGConnection *bus;
153152
154 if (self->network_dbus_proxy != NULL)153 if (self->network_dbus_proxy != NULL)
155 return self->network_dbus_proxy;154 return self->network_dbus_proxy;
156155
157 bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);156 bus = dbus_g_bus_get(DBUS_BUS_SESSION, NULL);
158 self->network_dbus_proxy = dbus_g_proxy_new_for_name_owner(bus,157 self->network_dbus_proxy = dbus_g_proxy_new_for_name(bus,
159 INDICATOR_NETWORK_DBUS_NAME,158 INDICATOR_NETWORK_DBUS_NAME,
160 INDICATOR_NETWORK_SERVICE_DBUS_OBJECT,159 INDICATOR_NETWORK_SERVICE_DBUS_OBJECT,
161 INDICATOR_NETWORK_SERVICE_DBUS_INTERFACE,160 INDICATOR_NETWORK_SERVICE_DBUS_INTERFACE);
162 &error);
163161
164 if (error != NULL) {162 if (self->network_dbus_proxy == NULL) {
165 g_warning("Unable to get network dbus proxy: %s", error->message);163 g_warning("Unable to get network dbus proxy");
166 g_error_free(error);
167 self->network_dbus_proxy = NULL;
168 return NULL;164 return NULL;
169 }165 }
170166

Subscribers

People subscribed via source and target branches