[gnome-commander] noop: code cleanup (gnome_cmd_con_smb_get_type() -> GNOME_CMD_TYPE_CON_SMB)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_con_smb_get_type() -> GNOME_CMD_TYPE_CON_SMB)
- Date: Thu, 27 Jan 2011 19:15:58 +0000 (UTC)
commit 73703f236813f9f9bb41dbad331e113ba19849a2
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Jan 27 20:13:46 2011 +0100
noop: code cleanup (gnome_cmd_con_smb_get_type() -> GNOME_CMD_TYPE_CON_SMB)
src/gnome-cmd-con-smb.cc | 2 +-
src/gnome-cmd-con-smb.h | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-smb.cc b/src/gnome-cmd-con-smb.cc
index 0cae0f0..64bcad6 100644
--- a/src/gnome-cmd-con-smb.cc
+++ b/src/gnome-cmd-con-smb.cc
@@ -246,5 +246,5 @@ GtkType gnome_cmd_con_smb_get_type ()
GnomeCmdCon *gnome_cmd_con_smb_new ()
{
- return GNOME_CMD_CON (gtk_type_new (gnome_cmd_con_smb_get_type ()));
+ return GNOME_CMD_CON (gtk_type_new (GNOME_CMD_TYPE_CON_SMB));
}
diff --git a/src/gnome-cmd-con-smb.h b/src/gnome-cmd-con-smb.h
index 2eb9a9c..aebaa77 100644
--- a/src/gnome-cmd-con-smb.h
+++ b/src/gnome-cmd-con-smb.h
@@ -22,12 +22,12 @@
#include "gnome-cmd-con.h"
-#define GNOME_CMD_CON_SMB(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_con_smb_get_type (), GnomeCmdConSmb)
-#define GNOME_CMD_CON_SMB_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_smb_get_type (), GnomeCmdConSmbClass)
-#define GNOME_CMD_IS_CON_SMB(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_con_smb_get_type ())
+#define GNOME_CMD_TYPE_CON_SMB (gnome_cmd_con_smb_get_type ())
+#define GNOME_CMD_CON_SMB(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_CON_SMB, GnomeCmdConSmb))
+#define GNOME_CMD_CON_SMB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_CON_SMB, GnomeCmdConSmbClass))
+#define GNOME_CMD_IS_CON_SMB(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_CON_SMB))
+#define GNOME_CMD_IS_CON_SMB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_CON_SMB))
+#define GNOME_CMD_CON_SMB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CON_SMB, GnomeCmdConSmbClass))
struct GnomeCmdConSmb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]