[gnome-commander] noop: code cleanup (gnome_cmd_patternsel_dialog_get_type() -> GNOME_CMD_TYPE_PATTERNSEL_DIALOG)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_patternsel_dialog_get_type() -> GNOME_CMD_TYPE_PATTERNSEL_DIALOG)
- Date: Wed, 26 Jan 2011 22:11:52 +0000 (UTC)
commit b3c2d845bd4ec870e6d37ad34512c85f7dc0d368
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Jan 26 22:56:19 2011 +0100
noop: code cleanup (gnome_cmd_patternsel_dialog_get_type() -> GNOME_CMD_TYPE_PATTERNSEL_DIALOG)
src/gnome-cmd-patternsel-dialog.cc | 2 +-
src/gnome-cmd-patternsel-dialog.h | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-patternsel-dialog.cc b/src/gnome-cmd-patternsel-dialog.cc
index 322f38a..3c561fc 100644
--- a/src/gnome-cmd-patternsel-dialog.cc
+++ b/src/gnome-cmd-patternsel-dialog.cc
@@ -117,7 +117,7 @@ GtkWidget *gnome_cmd_patternsel_dialog_new (GnomeCmdFileList *fl, gboolean mode)
{
GtkWidget *hbox, *vbox, *label;
GnomeCmdData::SearchConfig &defaults = gnome_cmd_data.search_defaults;
- GnomeCmdPatternselDialog *dialog = (GnomeCmdPatternselDialog *) gtk_type_new (gnome_cmd_patternsel_dialog_get_type ());
+ GnomeCmdPatternselDialog *dialog = (GnomeCmdPatternselDialog *) gtk_type_new (GNOME_CMD_TYPE_PATTERNSEL_DIALOG);
dialog->priv->mode = mode;
dialog->priv->fl = fl;
diff --git a/src/gnome-cmd-patternsel-dialog.h b/src/gnome-cmd-patternsel-dialog.h
index fbbb40e..06381eb 100644
--- a/src/gnome-cmd-patternsel-dialog.h
+++ b/src/gnome-cmd-patternsel-dialog.h
@@ -22,12 +22,12 @@
#include "gnome-cmd-file-list.h"
-#define GNOME_CMD_PATTERNSEL_DIALOG(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_patternsel_dialog_get_type (), GnomeCmdPatternselDialog)
-#define GNOME_CMD_PATTERNSEL_DIALOG_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_patternsel_dialog_get_type (), GnomeCmdPatternselDialogClass)
-#define GNOME_CMD_IS_PATTERNSEL_DIALOG(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_patternsel_dialog_get_type ())
+#define GNOME_CMD_TYPE_PATTERNSEL_DIALOG (gnome_cmd_patternsel_dialog_get_type ())
+#define GNOME_CMD_PATTERNSEL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_PATTERNSEL_DIALOG, GnomeCmdPatternselDialog))
+#define GNOME_CMD_PATTERNSEL_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_PATTERNSEL_DIALOG, GnomeCmdPatternselDialogClass))
+#define GNOME_CMD_IS_PATTERNSEL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_PATTERNSEL_DIALOG))
+#define GNOME_CMD_IS_PATTERNSEL_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_PATTERNSEL_DIALOG))
+#define GNOME_CMD_PATTERNSEL_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_PATTERNSEL_DIALOG, GnomeCmdPatternselDialogClass))
struct GnomeCmdPatternselDialogPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]