[gnome-commander] noop: code cleanup (gnome_cmd_options_dialog_get_type() -> GNOME_CMD_TYPE_OPTIONS_DIALOG)



commit 9ebdbbfec16a148ef2dae21612109e0b5bbebf64
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jan 23 23:47:04 2011 +0100

    noop: code cleanup (gnome_cmd_options_dialog_get_type() -> GNOME_CMD_TYPE_OPTIONS_DIALOG)

 src/gnome-cmd-options-dialog.cc |    2 +-
 src/gnome-cmd-options-dialog.h  |    7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index df7d887..076dd30 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -2108,5 +2108,5 @@ GtkType gnome_cmd_options_dialog_get_type ()
 
 GtkWidget *gnome_cmd_options_dialog_new ()
 {
-    return (GtkWidget *) gtk_type_new (gnome_cmd_options_dialog_get_type ());
+    return (GtkWidget *) gtk_type_new (GNOME_CMD_TYPE_OPTIONS_DIALOG);
 }
diff --git a/src/gnome-cmd-options-dialog.h b/src/gnome-cmd-options-dialog.h
index 62121c9..5c0f640 100644
--- a/src/gnome-cmd-options-dialog.h
+++ b/src/gnome-cmd-options-dialog.h
@@ -20,9 +20,10 @@
 #ifndef __GNOME_CMD_OPTIONS_DIALOG_H__
 #define __GNOME_CMD_OPTIONS_DIALOG_H__
 
-#define GNOME_CMD_OPTIONS_DIALOG(obj)           GTK_CHECK_CAST (obj, gnome_cmd_options_dialog_get_type (), GnomeCmdOptionsDialog)
-#define GNOME_CMD_OPTIONS_DIALOG_CLASS(klass)   GTK_CHECK_CLASS_CAST (klass, gnome_cmd_options_dialog_get_type (), GnomeCmdOptionsDialogClass)
-#define GNOME_CMD_IS_OPTIONS_DIALOG(obj)        GTK_CHECK_TYPE (obj, gnome_cmd_options_dialog_get_type ())
+#define GNOME_CMD_TYPE_OPTIONS_DIALOG          (gnome_cmd_options_dialog_get_type ())
+#define GNOME_CMD_OPTIONS_DIALOG(obj)           GTK_CHECK_CAST (obj, GNOME_CMD_TYPE_OPTIONS_DIALOG, GnomeCmdOptionsDialog)
+#define GNOME_CMD_OPTIONS_DIALOG_CLASS(klass)   GTK_CHECK_CLASS_CAST (klass, GNOME_CMD_TYPE_OPTIONS_DIALOG, GnomeCmdOptionsDialogClass)
+#define GNOME_CMD_IS_OPTIONS_DIALOG(obj)        GTK_CHECK_TYPE (obj, GNOME_CMD_TYPE_OPTIONS_DIALOG)
 
 
 struct GnomeCmdOptionsDialogClass



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