summaryrefslogtreecommitdiff
path: root/plugins/background/gsd-background-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/background/gsd-background-plugin.c')
-rw-r--r--plugins/background/gsd-background-plugin.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/background/gsd-background-plugin.c b/plugins/background/gsd-background-plugin.c
index e001f39..d12bb2b 100644
--- a/plugins/background/gsd-background-plugin.c
+++ b/plugins/background/gsd-background-plugin.c
@@ -24,38 +24,38 @@
#include <gmodule.h>
#include "mate-settings-plugin.h"
-#include "gsd-background-plugin.h"
-#include "gsd-background-manager.h"
+#include "msd-background-plugin.h"
+#include "msd-background-manager.h"
-struct GsdBackgroundPluginPrivate {
- GsdBackgroundManager *manager;
+struct MsdBackgroundPluginPrivate {
+ MsdBackgroundManager *manager;
};
-#define GSD_BACKGROUND_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), GSD_TYPE_BACKGROUND_PLUGIN, GsdBackgroundPluginPrivate))
+#define MSD_BACKGROUND_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_BACKGROUND_PLUGIN, MsdBackgroundPluginPrivate))
-MATE_SETTINGS_PLUGIN_REGISTER (GsdBackgroundPlugin, gsd_background_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER (MsdBackgroundPlugin, msd_background_plugin)
static void
-gsd_background_plugin_init (GsdBackgroundPlugin *plugin)
+msd_background_plugin_init (MsdBackgroundPlugin *plugin)
{
- plugin->priv = GSD_BACKGROUND_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = MSD_BACKGROUND_PLUGIN_GET_PRIVATE (plugin);
- g_debug ("GsdBackgroundPlugin initializing");
+ g_debug ("MsdBackgroundPlugin initializing");
- plugin->priv->manager = gsd_background_manager_new ();
+ plugin->priv->manager = msd_background_manager_new ();
}
static void
-gsd_background_plugin_finalize (GObject *object)
+msd_background_plugin_finalize (GObject *object)
{
- GsdBackgroundPlugin *plugin;
+ MsdBackgroundPlugin *plugin;
g_return_if_fail (object != NULL);
- g_return_if_fail (GSD_IS_BACKGROUND_PLUGIN (object));
+ g_return_if_fail (MSD_IS_BACKGROUND_PLUGIN (object));
- g_debug ("GsdBackgroundPlugin finalizing");
+ g_debug ("MsdBackgroundPlugin finalizing");
- plugin = GSD_BACKGROUND_PLUGIN (object);
+ plugin = MSD_BACKGROUND_PLUGIN (object);
g_return_if_fail (plugin->priv != NULL);
@@ -63,7 +63,7 @@ gsd_background_plugin_finalize (GObject *object)
g_object_unref (plugin->priv->manager);
}
- G_OBJECT_CLASS (gsd_background_plugin_parent_class)->finalize (object);
+ G_OBJECT_CLASS (msd_background_plugin_parent_class)->finalize (object);
}
static void
@@ -75,7 +75,7 @@ impl_activate (MateSettingsPlugin *plugin)
g_debug ("Activating background plugin");
error = NULL;
- res = gsd_background_manager_start (GSD_BACKGROUND_PLUGIN (plugin)->priv->manager, &error);
+ res = msd_background_manager_start (MSD_BACKGROUND_PLUGIN (plugin)->priv->manager, &error);
if (! res) {
g_warning ("Unable to start background manager: %s", error->message);
g_error_free (error);
@@ -86,19 +86,19 @@ static void
impl_deactivate (MateSettingsPlugin *plugin)
{
g_debug ("Deactivating background plugin");
- gsd_background_manager_stop (GSD_BACKGROUND_PLUGIN (plugin)->priv->manager);
+ msd_background_manager_stop (MSD_BACKGROUND_PLUGIN (plugin)->priv->manager);
}
static void
-gsd_background_plugin_class_init (GsdBackgroundPluginClass *klass)
+msd_background_plugin_class_init (MsdBackgroundPluginClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
MateSettingsPluginClass *plugin_class = MATE_SETTINGS_PLUGIN_CLASS (klass);
- object_class->finalize = gsd_background_plugin_finalize;
+ object_class->finalize = msd_background_plugin_finalize;
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
- g_type_class_add_private (klass, sizeof (GsdBackgroundPluginPrivate));
+ g_type_class_add_private (klass, sizeof (MsdBackgroundPluginPrivate));
}