~skypce/indicator-session/indicator-session

« back to all changes in this revision

Viewing changes to src/status-service.c

  • Committer: Bazaar Package Importer
  • Author(s): Ted Gould
  • Date: 2009-09-24 17:07:51 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090924170751-l7afnthkpri6diwd
Tags: 0.1.5-0ubuntu1
* Upstream release 0.1.5 (LP: #436223)
  * PolicyKit-1 support (LP: #418643)
  * GDM User list support (LP: #422052)
  * MissionControl5 support (LP: #427643)
  * Better locking of the screensaver (LP: #428115)
* debian/control: Adding in a libempathy-dev build dependency
  as it's now required by upstream.
* Removing patches 01_polkit-1.patch and 99_autoreconf.patch
  as they were merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
Authors:
8
8
    Ted Gould <ted@canonical.com>
9
9
 
10
 
This program is free software: you can redistribute it and/or modify it 
11
 
under the terms of the GNU General Public License version 3, as published 
 
10
This program is free software: you can redistribute it and/or modify it
 
11
under the terms of the GNU General Public License version 3, as published
12
12
by the Free Software Foundation.
13
13
 
14
 
This program is distributed in the hope that it will be useful, but 
15
 
WITHOUT ANY WARRANTY; without even the implied warranties of 
16
 
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
 
14
This program is distributed in the hope that it will be useful, but
 
15
WITHOUT ANY WARRANTY; without even the implied warranties of
 
16
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
17
17
PURPOSE.  See the GNU General Public License for more details.
18
18
 
19
 
You should have received a copy of the GNU General Public License along 
 
19
You should have received a copy of the GNU General Public License along
20
20
with this program.  If not, see <http://www.gnu.org/licenses/>.
21
21
*/
22
22
 
40
40
#include "status-service-dbus.h"
41
41
 
42
42
#include "status-provider.h"
 
43
#include "status-provider-mc5.h"
43
44
#include "status-provider-pidgin.h"
44
45
#include "status-provider-telepathy.h"
45
46
 
46
47
typedef StatusProvider * (*newfunc) (void);
47
 
#define STATUS_PROVIDER_CNT   2
 
48
#define STATUS_PROVIDER_CNT   3
48
49
static newfunc status_provider_newfuncs[STATUS_PROVIDER_CNT] = {
 
50
        status_provider_mc5_new,
49
51
        status_provider_pidgin_new,
50
52
        status_provider_telepathy_new
51
53
};
238
240
    if (!org_freedesktop_DBus_request_name(bus_proxy, INDICATOR_STATUS_DBUS_NAME, 0, &nameret, &error)) {
239
241
        g_error("Unable to call to request name");
240
242
        return 1;
241
 
    }   
 
243
    }
242
244
 
243
245
    if (nameret != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER) {
244
246
        g_error("Unable to get name");
245
247
        return 1;
246
 
    }   
 
248
    }
247
249
 
248
250
        g_idle_add(build_providers, NULL);
249
251