summaryrefslogtreecommitdiff
path: root/plugins/dummy/gsd-dummy-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dummy/gsd-dummy-manager.c')
-rw-r--r--plugins/dummy/gsd-dummy-manager.c84
1 files changed, 42 insertions, 42 deletions
diff --git a/plugins/dummy/gsd-dummy-manager.c b/plugins/dummy/gsd-dummy-manager.c
index 568c832..2744aeb 100644
--- a/plugins/dummy/gsd-dummy-manager.c
+++ b/plugins/dummy/gsd-dummy-manager.c
@@ -37,11 +37,11 @@
#include <gtk/gtk.h>
#include "mate-settings-profile.h"
-#include "gsd-dummy-manager.h"
+#include "msd-dummy-manager.h"
-#define GSD_DUMMY_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_DUMMY_MANAGER, GsdDummyManagerPrivate))
+#define MSD_DUMMY_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MSD_TYPE_DUMMY_MANAGER, MsdDummyManagerPrivate))
-struct GsdDummyManagerPrivate
+struct MsdDummyManagerPrivate
{
gboolean padding;
};
@@ -50,16 +50,16 @@ enum {
PROP_0,
};
-static void gsd_dummy_manager_class_init (GsdDummyManagerClass *klass);
-static void gsd_dummy_manager_init (GsdDummyManager *dummy_manager);
-static void gsd_dummy_manager_finalize (GObject *object);
+static void msd_dummy_manager_class_init (MsdDummyManagerClass *klass);
+static void msd_dummy_manager_init (MsdDummyManager *dummy_manager);
+static void msd_dummy_manager_finalize (GObject *object);
-G_DEFINE_TYPE (GsdDummyManager, gsd_dummy_manager, G_TYPE_OBJECT)
+G_DEFINE_TYPE (MsdDummyManager, msd_dummy_manager, G_TYPE_OBJECT)
static gpointer manager_object = NULL;
gboolean
-gsd_dummy_manager_start (GsdDummyManager *manager,
+msd_dummy_manager_start (MsdDummyManager *manager,
GError **error)
{
g_debug ("Starting dummy manager");
@@ -69,20 +69,20 @@ gsd_dummy_manager_start (GsdDummyManager *manager,
}
void
-gsd_dummy_manager_stop (GsdDummyManager *manager)
+msd_dummy_manager_stop (MsdDummyManager *manager)
{
g_debug ("Stopping dummy manager");
}
static void
-gsd_dummy_manager_set_property (GObject *object,
+msd_dummy_manager_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
- GsdDummyManager *self;
+ MsdDummyManager *self;
- self = GSD_DUMMY_MANAGER (object);
+ self = MSD_DUMMY_MANAGER (object);
switch (prop_id) {
default:
@@ -92,14 +92,14 @@ gsd_dummy_manager_set_property (GObject *object,
}
static void
-gsd_dummy_manager_get_property (GObject *object,
+msd_dummy_manager_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
- GsdDummyManager *self;
+ MsdDummyManager *self;
- self = GSD_DUMMY_MANAGER (object);
+ self = MSD_DUMMY_MANAGER (object);
switch (prop_id) {
default:
@@ -109,16 +109,16 @@ gsd_dummy_manager_get_property (GObject *object,
}
static GObject *
-gsd_dummy_manager_constructor (GType type,
+msd_dummy_manager_constructor (GType type,
guint n_construct_properties,
GObjectConstructParam *construct_properties)
{
- GsdDummyManager *dummy_manager;
- GsdDummyManagerClass *klass;
+ MsdDummyManager *dummy_manager;
+ MsdDummyManagerClass *klass;
- klass = GSD_DUMMY_MANAGER_CLASS (g_type_class_peek (GSD_TYPE_DUMMY_MANAGER));
+ klass = MSD_DUMMY_MANAGER_CLASS (g_type_class_peek (MSD_TYPE_DUMMY_MANAGER));
- dummy_manager = GSD_DUMMY_MANAGER (G_OBJECT_CLASS (gsd_dummy_manager_parent_class)->constructor (type,
+ dummy_manager = MSD_DUMMY_MANAGER (G_OBJECT_CLASS (msd_dummy_manager_parent_class)->constructor (type,
n_construct_properties,
construct_properties));
@@ -126,61 +126,61 @@ gsd_dummy_manager_constructor (GType type,
}
static void
-gsd_dummy_manager_dispose (GObject *object)
+msd_dummy_manager_dispose (GObject *object)
{
- GsdDummyManager *dummy_manager;
+ MsdDummyManager *dummy_manager;
- dummy_manager = GSD_DUMMY_MANAGER (object);
+ dummy_manager = MSD_DUMMY_MANAGER (object);
- G_OBJECT_CLASS (gsd_dummy_manager_parent_class)->dispose (object);
+ G_OBJECT_CLASS (msd_dummy_manager_parent_class)->dispose (object);
}
static void
-gsd_dummy_manager_class_init (GsdDummyManagerClass *klass)
+msd_dummy_manager_class_init (MsdDummyManagerClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- object_class->get_property = gsd_dummy_manager_get_property;
- object_class->set_property = gsd_dummy_manager_set_property;
- object_class->constructor = gsd_dummy_manager_constructor;
- object_class->dispose = gsd_dummy_manager_dispose;
- object_class->finalize = gsd_dummy_manager_finalize;
+ object_class->get_property = msd_dummy_manager_get_property;
+ object_class->set_property = msd_dummy_manager_set_property;
+ object_class->constructor = msd_dummy_manager_constructor;
+ object_class->dispose = msd_dummy_manager_dispose;
+ object_class->finalize = msd_dummy_manager_finalize;
- g_type_class_add_private (klass, sizeof (GsdDummyManagerPrivate));
+ g_type_class_add_private (klass, sizeof (MsdDummyManagerPrivate));
}
static void
-gsd_dummy_manager_init (GsdDummyManager *manager)
+msd_dummy_manager_init (MsdDummyManager *manager)
{
- manager->priv = GSD_DUMMY_MANAGER_GET_PRIVATE (manager);
+ manager->priv = MSD_DUMMY_MANAGER_GET_PRIVATE (manager);
}
static void
-gsd_dummy_manager_finalize (GObject *object)
+msd_dummy_manager_finalize (GObject *object)
{
- GsdDummyManager *dummy_manager;
+ MsdDummyManager *dummy_manager;
g_return_if_fail (object != NULL);
- g_return_if_fail (GSD_IS_DUMMY_MANAGER (object));
+ g_return_if_fail (MSD_IS_DUMMY_MANAGER (object));
- dummy_manager = GSD_DUMMY_MANAGER (object);
+ dummy_manager = MSD_DUMMY_MANAGER (object);
g_return_if_fail (dummy_manager->priv != NULL);
- G_OBJECT_CLASS (gsd_dummy_manager_parent_class)->finalize (object);
+ G_OBJECT_CLASS (msd_dummy_manager_parent_class)->finalize (object);
}
-GsdDummyManager *
-gsd_dummy_manager_new (void)
+MsdDummyManager *
+msd_dummy_manager_new (void)
{
if (manager_object != NULL) {
g_object_ref (manager_object);
} else {
- manager_object = g_object_new (GSD_TYPE_DUMMY_MANAGER, NULL);
+ manager_object = g_object_new (MSD_TYPE_DUMMY_MANAGER, NULL);
g_object_add_weak_pointer (manager_object,
(gpointer *) &manager_object);
}
- return GSD_DUMMY_MANAGER (manager_object);
+ return MSD_DUMMY_MANAGER (manager_object);
}