aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-service-manager.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-02 15:35:26 -0600
committerTed Gould <ted@gould.cx>2009-12-02 15:35:26 -0600
commitb2a0e038ff46fc4ad40377e71eed4e1fd74c69f9 (patch)
tree08bbb779d6e6c894e6f75064c3886a4cb72067a6 /libindicator/indicator-service-manager.c
parent0c7f6132b3a13ef580f872db309b9adb061a0513 (diff)
downloadlibayatana-indicator-b2a0e038ff46fc4ad40377e71eed4e1fd74c69f9.tar.gz
libayatana-indicator-b2a0e038ff46fc4ad40377e71eed4e1fd74c69f9.tar.bz2
libayatana-indicator-b2a0e038ff46fc4ad40377e71eed4e1fd74c69f9.zip
Actually checking the version and erroring on it.
Diffstat (limited to 'libindicator/indicator-service-manager.c')
-rw-r--r--libindicator/indicator-service-manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c
index 86aa8b3..cc5c382 100644
--- a/libindicator/indicator-service-manager.c
+++ b/libindicator/indicator-service-manager.c
@@ -265,6 +265,11 @@ watch_cb (DBusGProxy * proxy, guint service_api_version, guint this_service_vers
return;
}
+ if (this_service_version != priv->this_service_version) {
+ g_warning("Service is using a API version than the manager. Expecting %d and got %d.", priv->this_service_version, this_service_version);
+ return;
+ }
+
if (!priv->connected) {
priv->connected = TRUE;
g_signal_emit(G_OBJECT(user_data), signals[CONNECTION_CHANGE], 0, TRUE, TRUE);