]> git.0d.be Git - empathy.git/blob - goa-mc-plugin/mission-control-plugin.c
Merge branch 'gnome-3-8'
[empathy.git] / goa-mc-plugin / mission-control-plugin.c
1 /*
2  * mission-control-plugin.c
3  *
4  * A Mission Control plugin to expose GNOME Online Accounts with chat
5  * capabilities (e.g. Facebook) to Mission Control
6  *
7  * Copyright (C) 2010-2011 Collabora Ltd.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
21  *
22  * Authors:
23  *    Danielle Madeley <danielle.madeley@collabora.co.uk>
24  */
25
26 #include "config.h"
27
28 #include "mcp-account-manager-goa.h"
29
30 GObject *
31 mcp_plugin_ref_nth_object (guint n)
32 {
33   static void *plugin_0 = NULL;
34
35   switch (n)
36     {
37       case 0:
38         if (plugin_0 == NULL)
39           plugin_0 = g_object_new (MCP_TYPE_ACCOUNT_MANAGER_GOA, NULL);
40         else
41           g_object_ref (plugin_0);
42
43         return plugin_0;
44
45       default:
46         return NULL;
47     }
48 }