[gnome-commander] noop: code cleanup (gnome_cmd_prepare_xfer_dialog_get_type() -> GNOME_CMD_TYPE_PREPARE_XFER_DIALOG)



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

    noop: code cleanup (gnome_cmd_prepare_xfer_dialog_get_type() -> GNOME_CMD_TYPE_PREPARE_XFER_DIALOG)

 src/gnome-cmd-prepare-xfer-dialog.cc |    2 +-
 src/gnome-cmd-prepare-xfer-dialog.h  |    9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-prepare-xfer-dialog.cc b/src/gnome-cmd-prepare-xfer-dialog.cc
index eb83c0f..6ae830c 100644
--- a/src/gnome-cmd-prepare-xfer-dialog.cc
+++ b/src/gnome-cmd-prepare-xfer-dialog.cc
@@ -383,7 +383,7 @@ GtkWidget *gnome_cmd_prepare_xfer_dialog_new (GnomeCmdFileSelector *from, GnomeC
     g_return_val_if_fail (to!=NULL, NULL);
 
     gchar *dest_str = NULL;
-    GnomeCmdPrepareXferDialog *dialog = (GnomeCmdPrepareXferDialog *) gtk_type_new (gnome_cmd_prepare_xfer_dialog_get_type ());
+    GnomeCmdPrepareXferDialog *dialog = (GnomeCmdPrepareXferDialog *) gtk_type_new (GNOME_CMD_TYPE_PREPARE_XFER_DIALOG);
 
     dialog->src_files = from->file_list()->get_selected_files();
     gnome_cmd_file_list_ref (dialog->src_files);
diff --git a/src/gnome-cmd-prepare-xfer-dialog.h b/src/gnome-cmd-prepare-xfer-dialog.h
index 61fefe2..3ff6736 100644
--- a/src/gnome-cmd-prepare-xfer-dialog.h
+++ b/src/gnome-cmd-prepare-xfer-dialog.h
@@ -23,9 +23,12 @@
 #include "gnome-cmd-dir.h"
 #include "gnome-cmd-file-selector.h"
 
-#define GNOME_CMD_PREPARE_XFER_DIALOG(obj)          GTK_CHECK_CAST (obj, gnome_cmd_prepare_xfer_dialog_get_type (), GnomeCmdPrepareXferDialog)
-#define GNOME_CMD_PREPARE_XFER_DIALOG_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gnome_cmd_prepare_xfer_dialog_get_type (), GnomeCmdPrepareXferDialogClass)
-#define GNOME_CMD_IS_PREPARE_XFER_DIALOG(obj)       GTK_CHECK_TYPE (obj, gnome_cmd_prepare_xfer_dialog_get_type ())
+#define GNOME_CMD_TYPE_PREPARE_XFER_DIALOG              (gnome_cmd_prepare_xfer_dialog_get_type ())
+#define GNOME_CMD_PREPARE_XFER_DIALOG(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_PREPARE_XFER_DIALOG, GnomeCmdPrepareXferDialog))
+#define GNOME_CMD_PREPARE_XFER_DIALOG_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_PREPARE_XFER_DIALOG, GnomeCmdPrepareXferDialogClass))
+#define GNOME_CMD_IS_PREPARE_XFER_DIALOG(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_PREPARE_XFER_DIALOG))
+#define GNOME_CMD_IS_PREPARE_XFER_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_PREPARE_XFER_DIALOG))
+#define GNOME_CMD_PREPARE_XFER_DIALOG_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_PREPARE_XFER_DIALOG, GnomeCmdPrepareXferDialogClass))
 
 
 struct GnomeCmdPrepareXferDialog



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