[gnome-commander] noop: code cleanup (gnome_cmd_con_get_type() -> GNOME_CMD_TYPE_CON)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_con_get_type() -> GNOME_CMD_TYPE_CON)
- Date: Mon, 24 Jan 2011 22:11:40 +0000 (UTC)
commit 6b380fa2311d9b7696f8e2c8d8d07c6d53fd5bd2
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 24 23:05:14 2011 +0100
noop: code cleanup (gnome_cmd_con_get_type() -> GNOME_CMD_TYPE_CON)
src/gnome-cmd-con-device.cc | 4 ++--
src/gnome-cmd-con-ftp.cc | 4 ++--
src/gnome-cmd-con-home.cc | 4 ++--
src/gnome-cmd-con-smb.cc | 4 ++--
src/gnome-cmd-con.h | 12 +++++-------
5 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 3e36e55..9e6e4f1 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -330,7 +330,7 @@ static void class_init (GnomeCmdConDeviceClass *klass)
object_class = GTK_OBJECT_CLASS (klass);
con_class = GNOME_CMD_CON_CLASS (klass);
- parent_class = (GnomeCmdConClass *) gtk_type_class (gnome_cmd_con_get_type ());
+ parent_class = (GnomeCmdConClass *) gtk_type_class (GNOME_CMD_TYPE_CON);
object_class->destroy = destroy;
@@ -384,7 +384,7 @@ GtkType gnome_cmd_con_device_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_con_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_CON, &info);
}
return type;
}
diff --git a/src/gnome-cmd-con-ftp.cc b/src/gnome-cmd-con-ftp.cc
index fc2615d..fe269b9 100644
--- a/src/gnome-cmd-con-ftp.cc
+++ b/src/gnome-cmd-con-ftp.cc
@@ -156,7 +156,7 @@ static void class_init (GnomeCmdConFtpClass *klass)
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdConClass *con_class = GNOME_CMD_CON_CLASS (klass);
- parent_class = (GnomeCmdConClass *) gtk_type_class (gnome_cmd_con_get_type ());
+ parent_class = (GnomeCmdConClass *) gtk_type_class (GNOME_CMD_TYPE_CON);
object_class->destroy = destroy;
@@ -236,7 +236,7 @@ GtkType gnome_cmd_con_ftp_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_con_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_CON, &info);
}
return type;
}
diff --git a/src/gnome-cmd-con-home.cc b/src/gnome-cmd-con-home.cc
index 10975ab..0b96743 100644
--- a/src/gnome-cmd-con-home.cc
+++ b/src/gnome-cmd-con-home.cc
@@ -90,7 +90,7 @@ static void class_init (GnomeCmdConHomeClass *klass)
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdConClass *con_class = GNOME_CMD_CON_CLASS (klass);
- parent_class = (GnomeCmdConClass *) gtk_type_class (gnome_cmd_con_get_type ());
+ parent_class = (GnomeCmdConClass *) gtk_type_class (GNOME_CMD_TYPE_CON);
object_class->destroy = destroy;
@@ -154,7 +154,7 @@ GtkType gnome_cmd_con_home_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_con_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_CON, &info);
}
return type;
}
diff --git a/src/gnome-cmd-con-smb.cc b/src/gnome-cmd-con-smb.cc
index 4a14c95..0cae0f0 100644
--- a/src/gnome-cmd-con-smb.cc
+++ b/src/gnome-cmd-con-smb.cc
@@ -180,7 +180,7 @@ static void class_init (GnomeCmdConSmbClass *klass)
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GnomeCmdConClass *con_class = GNOME_CMD_CON_CLASS (klass);
- parent_class = (GnomeCmdConClass *) gtk_type_class (gnome_cmd_con_get_type ());
+ parent_class = (GnomeCmdConClass *) gtk_type_class (GNOME_CMD_TYPE_CON);
object_class->destroy = destroy;
@@ -238,7 +238,7 @@ GtkType gnome_cmd_con_smb_get_type ()
(GtkClassInitFunc) NULL
};
- type = gtk_type_unique (gnome_cmd_con_get_type (), &info);
+ type = gtk_type_unique (GNOME_CMD_TYPE_CON, &info);
}
return type;
}
diff --git a/src/gnome-cmd-con.h b/src/gnome-cmd-con.h
index beb0b8b..8f691e5 100644
--- a/src/gnome-cmd-con.h
+++ b/src/gnome-cmd-con.h
@@ -21,13 +21,11 @@
#ifndef __GNOME_CMD_CON_H__
#define __GNOME_CMD_CON_H__
-#define GNOME_CMD_CON(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_con_get_type (), GnomeCmdCon)
-#define GNOME_CMD_CON_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_get_type (), GnomeCmdConClass)
-#define GNOME_CMD_IS_CON(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_con_get_type ())
-#define GNOME_CMD_CON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_CON, GnomeCmdConClass))
+#define GNOME_CMD_TYPE_CON (gnome_cmd_con_get_type ())
+#define GNOME_CMD_CON(obj) (GTK_CHECK_CAST (obj, GNOME_CMD_TYPE_CON, GnomeCmdCon))
+#define GNOME_CMD_CON_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, GNOME_CMD_TYPE_CON, GnomeCmdConClass))
+#define GNOME_CMD_IS_CON(obj) (GTK_CHECK_TYPE (obj, GNOME_CMD_TYPE_CON))
+#define GNOME_CMD_CON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_CON, GnomeCmdConClass))
struct GnomeCmdConPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]