[gnome-commander] noop: code cleanup (gnome_cmd_con_list_get_type() -> GNOME_CMD_TYPE_CON_LIST)



commit 49f9d54a2674d60092d6931fd3cd814a6d235aa5
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jan 27 20:13:19 2011 +0100

    noop: code cleanup (gnome_cmd_con_list_get_type() -> GNOME_CMD_TYPE_CON_LIST)

 src/gnome-cmd-con-list.cc |    2 +-
 src/gnome-cmd-con-list.h  |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-list.cc b/src/gnome-cmd-con-list.cc
index 40b2baf..6156c9c 100644
--- a/src/gnome-cmd-con-list.cc
+++ b/src/gnome-cmd-con-list.cc
@@ -191,7 +191,7 @@ GtkType gnome_cmd_con_list_get_type ()
 
 GnomeCmdConList *gnome_cmd_con_list_new ()
 {
-    return (GnomeCmdConList *) gtk_type_new (gnome_cmd_con_list_get_type ());
+    return (GnomeCmdConList *) gtk_type_new (GNOME_CMD_TYPE_CON_LIST);
 }
 
 
diff --git a/src/gnome-cmd-con-list.h b/src/gnome-cmd-con-list.h
index b94679f..c51f91f 100644
--- a/src/gnome-cmd-con-list.h
+++ b/src/gnome-cmd-con-list.h
@@ -26,12 +26,12 @@
 #include "gnome-cmd-con-ftp.h"
 #include "gnome-cmd-con-device.h"
 
-#define GNOME_CMD_CON_LIST(obj) \
-    GTK_CHECK_CAST (obj, gnome_cmd_con_list_get_type (), GnomeCmdConList)
-#define GNOME_CMD_CON_LIST_CLASS(klass) \
-    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_list_get_type (), GnomeCmdConListClass)
-#define GNOME_CMD_IS_CON_LIST(obj) \
-    GTK_CHECK_TYPE (obj, gnome_cmd_con_list_get_type ())
+#define GNOME_CMD_TYPE_CON_LIST              (gnome_cmd_con_list_get_type ())
+#define GNOME_CMD_CON_LIST(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_CON_LIST, GnomeCmdConList))
+#define GNOME_CMD_CON_LIST_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_CON_LIST, GnomeCmdConListClass))
+#define GNOME_CMD_IS_CON_LIST(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_CON_LIST))
+#define GNOME_CMD_IS_CON_LIST_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_CON_LIST))
+#define GNOME_CMD_CON_LIST_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CON_LIST, GnomeCmdConListClass))
 
 
 struct GnomeCmdConListPrivate;



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