aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-service-manager.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-04 13:50:43 -0600
committerTed Gould <ted@gould.cx>2009-12-04 13:50:43 -0600
commit2d3d5b5cde680584f6ca954c7d5b17daaa32610d (patch)
tree181437a336ae7fe8155709f80dc7474c85d1abdd /libindicator/indicator-service-manager.c
parent59b5bb78ff0b08bed79d4e4dd1811d6dde750a1f (diff)
downloadlibayatana-indicator-2d3d5b5cde680584f6ca954c7d5b17daaa32610d.tar.gz
libayatana-indicator-2d3d5b5cde680584f6ca954c7d5b17daaa32610d.tar.bz2
libayatana-indicator-2d3d5b5cde680584f6ca954c7d5b17daaa32610d.zip
Implemented the _connected function as it's silly that it wasn't.
Diffstat (limited to 'libindicator/indicator-service-manager.c')
-rw-r--r--libindicator/indicator-service-manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c
index 931fbb5..68f7f6b 100644
--- a/libindicator/indicator-service-manager.c
+++ b/libindicator/indicator-service-manager.c
@@ -445,8 +445,9 @@ indicator_service_manager_new_version (gchar * dbus_name, guint version)
gboolean
indicator_service_manager_connected (IndicatorServiceManager * sm)
{
-
- return FALSE;
+ g_return_val_if_fail(INDICATOR_IS_SERVICE_MANAGER(sm), FALSE);
+ IndicatorServiceManagerPrivate * priv = INDICATOR_SERVICE_MANAGER_GET_PRIVATE(sm);
+ return priv->connected;
}
/**