aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-09-17 15:13:13 -0500
committerTed Gould <ted@gould.cx>2014-09-17 15:13:13 -0500
commit22fcf3da4c9549daa3ba109373805bfdd960d0df (patch)
tree134b8f83b6dc668abc1f3db636aaeb6d47839561
parent074949340958b1adccd4fd61fc5bfb338fc57781 (diff)
downloadayatana-indicator-messages-22fcf3da4c9549daa3ba109373805bfdd960d0df.tar.gz
ayatana-indicator-messages-22fcf3da4c9549daa3ba109373805bfdd960d0df.tar.bz2
ayatana-indicator-messages-22fcf3da4c9549daa3ba109373805bfdd960d0df.zip
Connecting into accounts service
-rw-r--r--configure.ac3
-rw-r--r--debian/control1
-rw-r--r--src/im-accounts-service.c11
3 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e27f41d..8550030 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,7 +43,8 @@ GLIB_REQUIRED_VERSION=2.35.4
INTROSPECTION_REQUIRED_VERSION=1.32.0
PKG_CHECK_MODULES(APPLET, gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION
- glib-2.0 >= $GLIB_REQUIRED_VERSION)
+ glib-2.0 >= $GLIB_REQUIRED_VERSION
+ accountsservice)
PKG_CHECK_MODULES(GIO, gio-unix-2.0 >= $GIO_UNIX_REQUIRED_VERSION)
diff --git a/debian/control b/debian/control
index 164cded..8b46af7 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 9),
gobject-introspection (>= 0.9.12-4~),
gtk-doc-tools,
intltool,
+ libaccountsservice-dev,
libgirepository1.0-dev (>= 0.9.12),
libgtest-dev,
python3-dbusmock,
diff --git a/src/im-accounts-service.c b/src/im-accounts-service.c
index f618524..6fc2922 100644
--- a/src/im-accounts-service.c
+++ b/src/im-accounts-service.c
@@ -21,12 +21,14 @@
#include "config.h"
#endif
+#include <act/act.h>
+
#include "im-accounts-service.h"
typedef struct _ImAccountsServicePrivate ImAccountsServicePrivate;
struct _ImAccountsServicePrivate {
- int dummy;
+ ActUserManager * user_manager;
};
#define IM_ACCOUNTS_SERVICE_GET_PRIVATE(o) \
@@ -53,11 +55,18 @@ im_accounts_service_class_init (ImAccountsServiceClass *klass)
static void
im_accounts_service_init (ImAccountsService *self)
{
+ ImAccountsServicePrivate * priv = IM_ACCOUNTS_SERVICE_GET_PRIVATE(self);
+
+ priv->user_manager = act_user_manager_get_default();
}
static void
im_accounts_service_dispose (GObject *object)
{
+ ImAccountsServicePrivate * priv = IM_ACCOUNTS_SERVICE_GET_PRIVATE(object);
+
+ g_clear_object(&priv->user_manager);
+
G_OBJECT_CLASS (im_accounts_service_parent_class)->dispose (object);
}