~seb128/unity-settings-daemon/battery-info-key

« back to all changes in this revision

Viewing changes to src/gnome-settings-plugin.c

  • Committer: William Jon McCann
  • Author(s): William Jon McCann
  • Date: 2007-12-14 05:06:55 UTC
  • Revision ID: git-v1:b7f5d9895c19338f10b0bdd494b221b13b540d9d
Initial checkin. Previously lived in gdm module.

2007-12-14  William Jon McCann  <mccann@jhu.edu>

        * configure.ac, etc: Initial checkin.  Previously
        lived in gdm module.


svn path=/trunk/; revision=2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
 
2
 *
 
3
 * Copyright (C) 2002-2005 Paolo Maggi
 
4
 * Copyright (C) 2007      William Jon McCann <mccann@jhu.edu>
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place, Suite 330,
 
19
 * Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#include "config.h"
 
23
 
 
24
#include "gnome-settings-plugin.h"
 
25
 
 
26
G_DEFINE_TYPE (GnomeSettingsPlugin, gnome_settings_plugin, G_TYPE_OBJECT)
 
27
 
 
28
static void
 
29
dummy (GnomeSettingsPlugin *plugin)
 
30
{
 
31
        /* Empty */
 
32
}
 
33
 
 
34
static void
 
35
gnome_settings_plugin_class_init (GnomeSettingsPluginClass *klass)
 
36
{
 
37
        klass->activate = dummy;
 
38
        klass->deactivate = dummy;
 
39
}
 
40
 
 
41
static void
 
42
gnome_settings_plugin_init (GnomeSettingsPlugin *plugin)
 
43
{
 
44
        /* Empty */
 
45
}
 
46
 
 
47
void
 
48
gnome_settings_plugin_activate (GnomeSettingsPlugin *plugin)
 
49
{
 
50
        g_return_if_fail (GNOME_IS_SETTINGS_PLUGIN (plugin));
 
51
 
 
52
        GNOME_SETTINGS_PLUGIN_GET_CLASS (plugin)->activate (plugin);
 
53
}
 
54
 
 
55
void
 
56
gnome_settings_plugin_deactivate  (GnomeSettingsPlugin *plugin)
 
57
{
 
58
        g_return_if_fail (GNOME_IS_SETTINGS_PLUGIN (plugin));
 
59
 
 
60
        GNOME_SETTINGS_PLUGIN_GET_CLASS (plugin)->deactivate (plugin);
 
61
}