[gnome-commander] noop: code cleanup (gnome_cmd_plain_path_get_type() -> GNOME_CMD_TYPE_PLAIN_PATH)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_plain_path_get_type() -> GNOME_CMD_TYPE_PLAIN_PATH)
- Date: Wed, 26 Jan 2011 22:11:47 +0000 (UTC)
commit afe22d6dc43c922772aa4ec1d4ad7932d27546dc
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jan 26 22:53:17 2011 +0100
noop: code cleanup (gnome_cmd_plain_path_get_type() -> GNOME_CMD_TYPE_PLAIN_PATH)
src/gnome-cmd-plain-path.cc | 2 +-
src/gnome-cmd-plain-path.h | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-plain-path.cc b/src/gnome-cmd-plain-path.cc
index 1817479..8d0dfc2 100644
--- a/src/gnome-cmd-plain-path.cc
+++ b/src/gnome-cmd-plain-path.cc
@@ -168,7 +168,7 @@ GtkType gnome_cmd_plain_path_get_type ()
GnomeCmdPath *gnome_cmd_plain_path_new (const gchar *path)
{
- GnomeCmdPlainPath *plain_path = (GnomeCmdPlainPath *) gtk_type_new (gnome_cmd_plain_path_get_type ());
+ GnomeCmdPlainPath *plain_path = (GnomeCmdPlainPath *) gtk_type_new (GNOME_CMD_TYPE_PLAIN_PATH);
plain_path->priv->path = g_strdup (path);
return GNOME_CMD_PATH (plain_path);
diff --git a/src/gnome-cmd-plain-path.h b/src/gnome-cmd-plain-path.h
index 9066186..204bcb0 100644
--- a/src/gnome-cmd-plain-path.h
+++ b/src/gnome-cmd-plain-path.h
@@ -22,13 +22,13 @@
#include "gnome-cmd-path.h"
-#define GNOME_CMD_PLAIN_PATH(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_plain_path_get_type (), GnomeCmdPlainPath)
-#define GNOME_CMD_PLAIN_PATH_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_plain_path_get_type (), GnomeCmdPlainPathClass)
-#define GNOME_CMD_IS_PLAIN_PATH(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_plain_path_get_type ())
-
+#define GNOME_CMD_TYPE_PLAIN_PATH (gnome_cmd_plain_path_get_type ())
+#define GNOME_CMD_PLAIN_PATH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_PLAIN_PATH, GnomeCmdPlainPath))
+#define GNOME_CMD_PLAIN_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_PLAIN_PATH, GnomeCmdPlainPathClass))
+#define GNOME_CMD_IS_PLAIN_PATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_PLAIN_PATH))
+#define GNOME_CMD_IS_PLAIN_PATH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_PLAIN_PATH))
+#define GNOME_CMD_PLAIN_PATH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_PLAIN_PATH, GnomeCmdPlainPathClass))
+[
struct GnomeCmdPlainPathPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]