[gnome-commander] noop: code cleanup (gnome_cmd_con_ftp_get_type() -> GNOME_CMD_TYPE_CON_FTP)



commit 78d4d36495387dfe1c240573f931cd06062bfae3
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Jan 27 19:57:11 2011 +0100

    noop: code cleanup (gnome_cmd_con_ftp_get_type() -> GNOME_CMD_TYPE_CON_FTP)

 src/gnome-cmd-con-ftp.cc |    2 +-
 src/gnome-cmd-con-ftp.h  |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-ftp.cc b/src/gnome-cmd-con-ftp.cc
index fe269b9..6b615b7 100644
--- a/src/gnome-cmd-con-ftp.cc
+++ b/src/gnome-cmd-con-ftp.cc
@@ -251,7 +251,7 @@ GnomeCmdConFtp *gnome_cmd_con_ftp_new (const gchar *alias, const string &text_ur
     const gchar *host = gnome_vfs_uri_get_host_name (uri);      // do not g_free
     const gchar *password = gnome_vfs_uri_get_password (uri);   // do not g_free
 
-    GnomeCmdConFtp *server = (GnomeCmdConFtp *) gtk_type_new (gnome_cmd_con_ftp_get_type ());
+    GnomeCmdConFtp *server = (GnomeCmdConFtp *) gtk_type_new (GNOME_CMD_TYPE_CON_FTP);
 
     g_return_val_if_fail (server != NULL, NULL);
 
diff --git a/src/gnome-cmd-con-ftp.h b/src/gnome-cmd-con-ftp.h
index 16930d2..032012a 100644
--- a/src/gnome-cmd-con-ftp.h
+++ b/src/gnome-cmd-con-ftp.h
@@ -23,12 +23,12 @@
 
 #include "gnome-cmd-con.h"
 
-#define GNOME_CMD_CON_FTP(obj) \
-    GTK_CHECK_CAST (obj, gnome_cmd_con_ftp_get_type (), GnomeCmdConFtp)
-#define GNOME_CMD_CON_FTP_CLASS(klass) \
-    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_ftp_get_type (), GnomeCmdConFtpClass)
-#define GNOME_CMD_IS_CON_FTP(obj) \
-    GTK_CHECK_TYPE (obj, gnome_cmd_con_ftp_get_type ())
+#define GNOME_CMD_TYPE_CON_FTP              (gnome_cmd_con_ftp_get_type ())
+#define GNOME_CMD_CON_FTP(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_CON_FTP, GnomeCmdConFtp))
+#define GNOME_CMD_CON_FTP_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_CON_FTP, GnomeCmdConFtpClass))
+#define GNOME_CMD_IS_CON_FTP(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_CON_FTP))
+#define GNOME_CMD_IS_CON_FTP_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_CON_FTP))
+#define GNOME_CMD_CON_FTP_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CON_FTP, GnomeCmdConFtpClass))
 
 
 struct GnomeCmdConFtp



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