summaryrefslogtreecommitdiff
path: root/plugins/mouse/gsd-mouse-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mouse/gsd-mouse-plugin.c')
-rw-r--r--plugins/mouse/gsd-mouse-plugin.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/mouse/gsd-mouse-plugin.c b/plugins/mouse/gsd-mouse-plugin.c
index 900a6d5..7203002 100644
--- a/plugins/mouse/gsd-mouse-plugin.c
+++ b/plugins/mouse/gsd-mouse-plugin.c
@@ -24,38 +24,38 @@
#include <gmodule.h>
#include "mate-settings-plugin.h"
-#include "gsd-mouse-plugin.h"
-#include "gsd-mouse-manager.h"
+#include "msd-mouse-plugin.h"
+#include "msd-mouse-manager.h"
-struct GsdMousePluginPrivate {
- GsdMouseManager *manager;
+struct MsdMousePluginPrivate {
+ MsdMouseManager *manager;
};
-#define GSD_MOUSE_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), GSD_TYPE_MOUSE_PLUGIN, GsdMousePluginPrivate))
+#define MSD_MOUSE_PLUGIN_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), MSD_TYPE_MOUSE_PLUGIN, MsdMousePluginPrivate))
-MATE_SETTINGS_PLUGIN_REGISTER (GsdMousePlugin, gsd_mouse_plugin)
+MATE_SETTINGS_PLUGIN_REGISTER (MsdMousePlugin, msd_mouse_plugin)
static void
-gsd_mouse_plugin_init (GsdMousePlugin *plugin)
+msd_mouse_plugin_init (MsdMousePlugin *plugin)
{
- plugin->priv = GSD_MOUSE_PLUGIN_GET_PRIVATE (plugin);
+ plugin->priv = MSD_MOUSE_PLUGIN_GET_PRIVATE (plugin);
- g_debug ("GsdMousePlugin initializing");
+ g_debug ("MsdMousePlugin initializing");
- plugin->priv->manager = gsd_mouse_manager_new ();
+ plugin->priv->manager = msd_mouse_manager_new ();
}
static void
-gsd_mouse_plugin_finalize (GObject *object)
+msd_mouse_plugin_finalize (GObject *object)
{
- GsdMousePlugin *plugin;
+ MsdMousePlugin *plugin;
g_return_if_fail (object != NULL);
- g_return_if_fail (GSD_IS_MOUSE_PLUGIN (object));
+ g_return_if_fail (MSD_IS_MOUSE_PLUGIN (object));
- g_debug ("GsdMousePlugin finalizing");
+ g_debug ("MsdMousePlugin finalizing");
- plugin = GSD_MOUSE_PLUGIN (object);
+ plugin = MSD_MOUSE_PLUGIN (object);
g_return_if_fail (plugin->priv != NULL);
@@ -63,7 +63,7 @@ gsd_mouse_plugin_finalize (GObject *object)
g_object_unref (plugin->priv->manager);
}
- G_OBJECT_CLASS (gsd_mouse_plugin_parent_class)->finalize (object);
+ G_OBJECT_CLASS (msd_mouse_plugin_parent_class)->finalize (object);
}
static void
@@ -75,7 +75,7 @@ impl_activate (MateSettingsPlugin *plugin)
g_debug ("Activating mouse plugin");
error = NULL;
- res = gsd_mouse_manager_start (GSD_MOUSE_PLUGIN (plugin)->priv->manager, &error);
+ res = msd_mouse_manager_start (MSD_MOUSE_PLUGIN (plugin)->priv->manager, &error);
if (! res) {
g_warning ("Unable to start mouse manager: %s", error->message);
g_error_free (error);
@@ -86,19 +86,19 @@ static void
impl_deactivate (MateSettingsPlugin *plugin)
{
g_debug ("Deactivating mouse plugin");
- gsd_mouse_manager_stop (GSD_MOUSE_PLUGIN (plugin)->priv->manager);
+ msd_mouse_manager_stop (MSD_MOUSE_PLUGIN (plugin)->priv->manager);
}
static void
-gsd_mouse_plugin_class_init (GsdMousePluginClass *klass)
+msd_mouse_plugin_class_init (MsdMousePluginClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
MateSettingsPluginClass *plugin_class = MATE_SETTINGS_PLUGIN_CLASS (klass);
- object_class->finalize = gsd_mouse_plugin_finalize;
+ object_class->finalize = msd_mouse_plugin_finalize;
plugin_class->activate = impl_activate;
plugin_class->deactivate = impl_deactivate;
- g_type_class_add_private (klass, sizeof (GsdMousePluginPrivate));
+ g_type_class_add_private (klass, sizeof (MsdMousePluginPrivate));
}