1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright (C) 2002-2005 Paolo Maggi
4
* Copyright (C) 2007 William Jon McCann <mccann@jhu.edu>
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.
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.
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.
24
#include "gnome-settings-plugin.h"
26
G_DEFINE_TYPE (GnomeSettingsPlugin, gnome_settings_plugin, G_TYPE_OBJECT)
29
dummy (GnomeSettingsPlugin *plugin)
35
gnome_settings_plugin_class_init (GnomeSettingsPluginClass *klass)
37
klass->activate = dummy;
38
klass->deactivate = dummy;
42
gnome_settings_plugin_init (GnomeSettingsPlugin *plugin)
48
gnome_settings_plugin_activate (GnomeSettingsPlugin *plugin)
50
g_return_if_fail (GNOME_IS_SETTINGS_PLUGIN (plugin));
52
GNOME_SETTINGS_PLUGIN_GET_CLASS (plugin)->activate (plugin);
56
gnome_settings_plugin_deactivate (GnomeSettingsPlugin *plugin)
58
g_return_if_fail (GNOME_IS_SETTINGS_PLUGIN (plugin));
60
GNOME_SETTINGS_PLUGIN_GET_CLASS (plugin)->deactivate (plugin);