[gnome-commander] noop: code cleanup (gnome_cmd_con_device_get_type() -> GNOME_CMD_TYPE_CON_DEVICE)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_con_device_get_type() -> GNOME_CMD_TYPE_CON_DEVICE)
- Date: Thu, 27 Jan 2011 19:15:37 +0000 (UTC)
commit acdc540192e23728906700d6ba6b881351afeeec
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Thu Jan 27 19:55:30 2011 +0100
noop: code cleanup (gnome_cmd_con_device_get_type() -> GNOME_CMD_TYPE_CON_DEVICE)
src/gnome-cmd-con-device.cc | 2 +-
src/gnome-cmd-con-device.h | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 9e6e4f1..2eac590 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -392,7 +392,7 @@ GtkType gnome_cmd_con_device_get_type ()
GnomeCmdConDevice *gnome_cmd_con_device_new (const gchar *alias, const gchar *device_fn, const gchar *mountp, const gchar *icon_path)
{
- GnomeCmdConDevice *dev = (GnomeCmdConDevice *) gtk_type_new (gnome_cmd_con_device_get_type ());
+ GnomeCmdConDevice *dev = (GnomeCmdConDevice *) gtk_type_new (GNOME_CMD_TYPE_CON_DEVICE);
gnome_cmd_con_device_set_device_fn (dev, device_fn);
gnome_cmd_con_device_set_mountp (dev, mountp);
diff --git a/src/gnome-cmd-con-device.h b/src/gnome-cmd-con-device.h
index fee0202..c207bd8 100644
--- a/src/gnome-cmd-con-device.h
+++ b/src/gnome-cmd-con-device.h
@@ -23,12 +23,12 @@
#include "gnome-cmd-con.h"
-#define GNOME_CMD_CON_DEVICE(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_con_device_get_type (), GnomeCmdConDevice)
-#define GNOME_CMD_CON_DEVICE_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_con_device_get_type (), GnomeCmdConDeviceClass)
-#define GNOME_CMD_IS_CON_DEVICE(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_con_device_get_type ())
+#define GNOME_CMD_TYPE_CON_DEVICE (gnome_cmd_con_device_get_type ())
+#define GNOME_CMD_CON_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_CON_DEVICE, GnomeCmdConDevice))
+#define GNOME_CMD_CON_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_CON_DEVICE, GnomeCmdConDeviceClass))
+#define GNOME_CMD_IS_CON_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_CON_DEVICE))
+#define GNOME_CMD_IS_CON_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_CON_DEVICE))
+#define GNOME_CMD_CON_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_CON_DEVICE, GnomeCmdConDeviceClass))
struct GnomeCmdConDevicePrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]