[gnome-commander] noop: code cleanup (gnome_cmd_dir_indicator_get_type() -> GNOME_CMD_TYPE_DIR_INDICATOR)



commit c436f953d6e49d2c20d06a0073ab7cc09e89d629
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Jan 26 22:44:48 2011 +0100

    noop: code cleanup (gnome_cmd_dir_indicator_get_type() -> GNOME_CMD_TYPE_DIR_INDICATOR)

 src/gnome-cmd-dir-indicator.cc |    2 +-
 src/gnome-cmd-dir-indicator.h  |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index d0a0be3..06d583f 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -532,7 +532,7 @@ GtkType gnome_cmd_dir_indicator_get_type ()
 
 GtkWidget *gnome_cmd_dir_indicator_new (GnomeCmdFileSelector *fs)
 {
-    GnomeCmdDirIndicator *dir_indicator = (GnomeCmdDirIndicator *) gtk_type_new (gnome_cmd_dir_indicator_get_type ());
+    GnomeCmdDirIndicator *dir_indicator = (GnomeCmdDirIndicator *) gtk_type_new (GNOME_CMD_TYPE_DIR_INDICATOR);
 
     g_signal_connect (dir_indicator, "button-press-event", G_CALLBACK (on_dir_indicator_clicked), fs);
 
diff --git a/src/gnome-cmd-dir-indicator.h b/src/gnome-cmd-dir-indicator.h
index 66ba3bb..f5d8df5 100644
--- a/src/gnome-cmd-dir-indicator.h
+++ b/src/gnome-cmd-dir-indicator.h
@@ -25,12 +25,12 @@
 #include "gnome-cmd-con-device.h"
 #include "gnome-cmd-file-selector.h"
 
-#define GNOME_CMD_DIR_INDICATOR(obj) \
-    GTK_CHECK_CAST (obj, gnome_cmd_dir_indicator_get_type (), GnomeCmdDirIndicator)
-#define GNOME_CMD_DIR_INDICATOR_CLASS(klass) \
-    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_dir_indicator_get_type (), GnomeCmdDirIndicatorClass)
-#define GNOME_CMD_IS_DIR_INDICATOR(obj) \
-    GTK_CHECK_TYPE (obj, gnome_cmd_dir_indicator_get_type ())
+#define GNOME_CMD_TYPE_DIR_INDICATOR              (gnome_cmd_dir_indicator_get_type ())
+#define GNOME_CMD_DIR_INDICATOR(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_DIR_INDICATOR, GnomeCmdDirIndicator))
+#define GNOME_CMD_DIR_INDICATOR_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_DIR_INDICATOR, GnomeCmdDirIndicatorClass))
+#define GNOME_CMD_IS_DIR_INDICATOR(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_DIR_INDICATOR))
+#define GNOME_CMD_IS_DIR_INDICATOR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_DIR_INDICATOR))
+#define GNOME_CMD_DIR_INDICATOR_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_DIR_INDICATOR, GnomeCmdDirIndicatorClass))
 
 
 struct GnomeCmdDirIndicatorPrivate;



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