diff options
author | Ted Gould <ted@gould.cx> | 2014-09-17 16:05:46 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-09-17 16:05:46 -0500 |
commit | 25ab64f42a9ef31b65db8c7ff9f5780d8b2824e8 (patch) | |
tree | 726a136936a63ba3cc96fae2253f99a44f071009 /src | |
parent | 2f9058621c5dfa8e3f7780731072e593898c3db8 (diff) | |
download | ayatana-indicator-messages-25ab64f42a9ef31b65db8c7ff9f5780d8b2824e8.tar.gz ayatana-indicator-messages-25ab64f42a9ef31b65db8c7ff9f5780d8b2824e8.tar.bz2 ayatana-indicator-messages-25ab64f42a9ef31b65db8c7ff9f5780d8b2824e8.zip |
Get an accounts service instance in the application list
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index b926e77..d3da85b 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -22,6 +22,7 @@ #include "indicator-messages-application.h" #include "gactionmuxer.h" #include "indicator-desktop-shortcuts.h" +#include "im-accounts-service.h" #include <gio/gdesktopappinfo.h> #include <string.h> @@ -41,6 +42,8 @@ struct _ImApplicationList GSimpleAction * statusaction; GHashTable *app_status; + + ImAccountsService * as; }; G_DEFINE_TYPE (ImApplicationList, im_application_list, G_TYPE_OBJECT); @@ -449,6 +452,8 @@ im_application_list_dispose (GObject *object) g_clear_pointer (&list->applications, g_hash_table_unref); g_clear_object (&list->muxer); + g_clear_object (&list->as); + G_OBJECT_CLASS (im_application_list_parent_class)->dispose (object); } @@ -600,6 +605,8 @@ im_application_list_init (ImApplicationList *list) list->muxer = g_action_muxer_new (); g_action_muxer_insert (list->muxer, NULL, G_ACTION_GROUP (list->globalactions)); + list->as = im_accounts_service_ref_default(); + im_application_list_update_root_action (list); } |