[gnome-commander] noop: code cleanup (gnome_cmd_con_get_type() -> GNOME_CMD_TYPE_CON)



commit 325f345664ddc493aa42968360acec0118aa200a
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jan 27 19:58:19 2011 +0100

    noop: code cleanup (gnome_cmd_con_get_type() -> GNOME_CMD_TYPE_CON)

 src/gnome-cmd-con-home.cc |    2 +-
 src/gnome-cmd-con-home.h  |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-home.cc b/src/gnome-cmd-con-home.cc
index 0b96743..d47329b 100644
--- a/src/gnome-cmd-con-home.cc
+++ b/src/gnome-cmd-con-home.cc
@@ -162,7 +162,7 @@ GtkType gnome_cmd_con_home_get_type ()
 
 GnomeCmdCon *gnome_cmd_con_home_new ()
 {
-    GnomeCmdConHome *con = (GnomeCmdConHome *) gtk_type_new (gnome_cmd_con_home_get_type ());
+    GnomeCmdConHome *con = (GnomeCmdConHome *) gtk_type_new (GNOME_CMD_TYPE_CON_HOME);
 
     return GNOME_CMD_CON (con);
 }
diff --git a/src/gnome-cmd-con-home.h b/src/gnome-cmd-con-home.h
index 4ba9e8e..db7c6ea 100644
--- a/src/gnome-cmd-con-home.h
+++ b/src/gnome-cmd-con-home.h
@@ -23,12 +23,12 @@
 
 #include "gnome-cmd-con.h"
 
-#define GNOME_CMD_CON_HOME(obj) \
-    GTK_CHECK_CAST (obj, gnome_cmd_con_home_get_type (), GnomeCmdConHome)
-#define GNOME_CMD_CON_HOME_CLASS(klass) \
-    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_home_get_type (), GnomeCmdConHomeClass)
-#define GNOME_CMD_IS_CON_HOME(obj) \
-    GTK_CHECK_TYPE (obj, gnome_cmd_con_home_get_type ())
+#define GNOME_CMD_TYPE_CON_HOME              (gnome_cmd_con_home_get_type ())
+#define GNOME_CMD_CON_HOME(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_CON_HOME, GnomeCmdConHome))
+#define GNOME_CMD_CON_HOME_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_CON_HOME, GnomeCmdConHomeClass))
+#define GNOME_CMD_IS_CON_HOME(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_CON_HOME))
+#define GNOME_CMD_IS_CON_HOME_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_CON_HOME))
+#define GNOME_CMD_CON_HOME_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CON_HOME, GnomeCmdConHomeClass))
 
 
 struct GnomeCmdConHome



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]