[gnome-commander] noop: code cleanup (gnome_cmd_plugin_get_type() -> GNOME_CMD_TYPE_PLUGIN)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_plugin_get_type() -> GNOME_CMD_TYPE_PLUGIN)
- Date: Thu, 27 Jan 2011 18:36:02 +0000 (UTC)
commit 8f8b68da62e4f236aa9f0fc378ea1c14765df340
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Jan 27 19:06:24 2011 +0100
noop: code cleanup (gnome_cmd_plugin_get_type() -> GNOME_CMD_TYPE_PLUGIN)
libgcmd/gnome-cmd-plugin.h | 13 ++++++-------
plugins/cvs/cvs-plugin.cc | 4 ++--
plugins/fileroller/file-roller-plugin.cc | 4 ++--
plugins/test/test-plugin.cc | 4 ++--
4 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-plugin.h b/libgcmd/gnome-cmd-plugin.h
index c06e62c..6dc6317 100644
--- a/libgcmd/gnome-cmd-plugin.h
+++ b/libgcmd/gnome-cmd-plugin.h
@@ -21,13 +21,12 @@
#ifndef __GNOME_CMD_PLUGIN_H__
#define __GNOME_CMD_PLUGIN_H__
-#define GNOME_CMD_PLUGIN(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_plugin_get_type (), GnomeCmdPlugin)
-#define GNOME_CMD_PLUGIN_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_plugin_get_type (), GnomeCmdPluginClass)
-#define GNOME_CMD_IS_PLUGIN(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_plugin_get_type ())
-#define GNOME_CMD_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_PLUGIN, GnomeCmdPluginClass))
+#define GNOME_CMD_TYPE_PLUGIN (gnome_cmd_plugin_get_type ())
+#define GNOME_CMD_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_PLUGIN, GnomeCmdPlugin))
+#define GNOME_CMD_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_PLUGIN, GnomeCmdPluginClass))
+#define GNOME_CMD_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_PLUGIN))
+#define GNOME_CMD_IS_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_PLUGIN))
+#define GNOME_CMD_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_PLUGIN, GnomeCmdPluginClass))
typedef struct _GnomeCmdPlugin GnomeCmdPlugin;
diff --git a/plugins/cvs/cvs-plugin.cc b/plugins/cvs/cvs-plugin.cc
index 191d644..3cf6c89 100644
--- a/plugins/cvs/cvs-plugin.cc
+++ b/plugins/cvs/cvs-plugin.cc
@@ -327,7 +327,7 @@ static void class_init (CvsPluginClass *klass)
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdPluginClass *plugin_class = GNOME_CMD_PLUGIN_CLASS (klass);
- parent_class = (GnomeCmdPluginClass *) gtk_type_class (gnome_cmd_plugin_get_type ());
+ parent_class = (GnomeCmdPluginClass *) gtk_type_class (GNOME_CMD_TYPE_PLUGIN);
object_class->destroy = destroy;
@@ -373,7 +373,7 @@ GtkType cvs_plugin_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_plugin_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_PLUGIN, &info);
}
return type;
}
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index e29f50e..263881a 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -416,7 +416,7 @@ static void class_init (FileRollerPluginClass *klass)
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdPluginClass *plugin_class = GNOME_CMD_PLUGIN_CLASS (klass);
- parent_class = (GnomeCmdPluginClass *) gtk_type_class (gnome_cmd_plugin_get_type ());
+ parent_class = (GnomeCmdPluginClass *) gtk_type_class (GNOME_CMD_TYPE_PLUGIN);
object_class->destroy = destroy;
@@ -457,7 +457,7 @@ GtkType file_roller_plugin_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_plugin_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_PLUGIN, &info);
}
return type;
}
diff --git a/plugins/test/test-plugin.cc b/plugins/test/test-plugin.cc
index 3fbf810..cf705d5 100644
--- a/plugins/test/test-plugin.cc
+++ b/plugins/test/test-plugin.cc
@@ -154,7 +154,7 @@ static void class_init (TestPluginClass *klass)
object_class = GTK_OBJECT_CLASS (klass);
plugin_class = GNOME_CMD_PLUGIN_CLASS (klass);
- parent_class = (GnomeCmdPluginClass *) gtk_type_class (gnome_cmd_plugin_get_type ());
+ parent_class = (GnomeCmdPluginClass *) gtk_type_class (GNOME_CMD_TYPE_PLUGIN);
object_class->destroy = destroy;
@@ -194,7 +194,7 @@ GtkType test_plugin_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_plugin_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_PLUGIN, &info);
}
return type;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]