[gnome-commander] noop: code cleanup (gnome_cmd_smb_path_get_type() -> GNOME_CMD_TYPE_SMB_PATH)



commit c337bee9f308645fb0e128dc1f6b9239b7c09a64
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Jan 29 23:04:08 2011 +0100

    noop: code cleanup (gnome_cmd_smb_path_get_type() -> GNOME_CMD_TYPE_SMB_PATH)

 src/gnome-cmd-smb-path.cc |    2 +-
 src/gnome-cmd-smb-path.h  |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-smb-path.cc b/src/gnome-cmd-smb-path.cc
index 8aae9a0..a2c7c88 100644
--- a/src/gnome-cmd-smb-path.cc
+++ b/src/gnome-cmd-smb-path.cc
@@ -227,7 +227,7 @@ GtkType gnome_cmd_smb_path_get_type ()
 
 GnomeCmdPath *gnome_cmd_smb_path_new (const gchar *workgroup, const gchar *resource, const gchar *resource_path)
 {
-    GnomeCmdSmbPath *smb_path = (GnomeCmdSmbPath *) gtk_type_new (gnome_cmd_smb_path_get_type ());
+    GnomeCmdSmbPath *smb_path = (GnomeCmdSmbPath *) gtk_type_new (GNOME_CMD_TYPE_SMB_PATH);
 
     if (workgroup)
     {
diff --git a/src/gnome-cmd-smb-path.h b/src/gnome-cmd-smb-path.h
index ca5310a..a9768f3 100644
--- a/src/gnome-cmd-smb-path.h
+++ b/src/gnome-cmd-smb-path.h
@@ -23,12 +23,12 @@
 
 #include "gnome-cmd-path.h"
 
-#define GNOME_CMD_SMB_PATH(obj) \
-    GTK_CHECK_CAST (obj, gnome_cmd_smb_path_get_type (), GnomeCmdSmbPath)
-#define GNOME_CMD_SMB_PATH_CLASS(klass) \
-    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_smb_path_get_type (), GnomeCmdSmbPathClass)
-#define GNOME_CMD_IS_SMB_PATH(obj) \
-    GTK_CHECK_TYPE (obj, gnome_cmd_smb_path_get_type ())
+#define GNOME_CMD_TYPE_SMB_PATH              (gnome_cmd_smb_path_get_type ())
+#define GNOME_CMD_SMB_PATH(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_SMB_PATH, GnomeCmdSmbPath))
+#define GNOME_CMD_SMB_PATH_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_SMB_PATH, GnomeCmdSmbPathClass))
+#define GNOME_CMD_IS_SMB_PATH(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_SMB_PATH))
+#define GNOME_CMD_IS_SMB_PATH_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_SMB_PATH))
+#define GNOME_CMD_SMB_PATH_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_SMB_PATH, GnomeCmdSmbPathClass))
 
 
 struct GnomeCmdSmbPathPrivate;



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