[gnome-commander] noop: code cleanup (gnome_cmd_search_dialog_get_type() -> GNOME_CMD_TYPE_SEARCH_DIALOG)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_search_dialog_get_type() -> GNOME_CMD_TYPE_SEARCH_DIALOG)
- Date: Sat, 29 Jan 2011 22:11:39 +0000 (UTC)
commit d6ecd7ae6349080c969a3441ab4c01846ed5953d
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat Jan 29 23:05:01 2011 +0100
noop: code cleanup (gnome_cmd_search_dialog_get_type() -> GNOME_CMD_TYPE_SEARCH_DIALOG)
src/gnome-cmd-search-dialog.cc | 2 +-
src/gnome-cmd-search-dialog.h | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index cb4f645..5088307 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -972,7 +972,7 @@ GtkType gnome_cmd_search_dialog_get_type ()
GtkWidget *gnome_cmd_search_dialog_new (GnomeCmdDir *default_dir)
{
gchar *new_path;
- GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) gtk_type_new (gnome_cmd_search_dialog_get_type ());
+ GnomeCmdSearchDialog *dialog = (GnomeCmdSearchDialog *) gtk_type_new (GNOME_CMD_TYPE_SEARCH_DIALOG);
gchar *path = gnome_cmd_dir_is_local (default_dir) ? GNOME_CMD_FILE (default_dir)->get_real_path() : GNOME_CMD_FILE (default_dir)->get_path();
if (path[strlen(path)-1] != '/')
diff --git a/src/gnome-cmd-search-dialog.h b/src/gnome-cmd-search-dialog.h
index 56a16df..b2b1db2 100644
--- a/src/gnome-cmd-search-dialog.h
+++ b/src/gnome-cmd-search-dialog.h
@@ -23,12 +23,12 @@
#include "gnome-cmd-dir.h"
-#define GNOME_CMD_SEARCH_DIALOG(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_search_dialog_get_type (), GnomeCmdSearchDialog)
-#define GNOME_CMD_SEARCH_DIALOG_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_search_dialog_get_type (), GnomeCmdSearchDialogClass)
-#define GNOME_CMD_IS_SEARCH_DIALOG(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_search_dialog_get_type ())
+#define GNOME_CMD_TYPE_SEARCH_DIALOG (gnome_cmd_search_dialog_get_type ())
+#define GNOME_CMD_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNOME_CMD_TYPE_SEARCH_DIALOG, GnomeCmdSearchDialog))
+#define GNOME_CMD_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNOME_CMD_TYPE_SEARCH_DIALOG, GnomeCmdSearchDialogClass))
+#define GNOME_CMD_IS_SEARCH_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNOME_CMD_TYPE_SEARCH_DIALOG))
+#define GNOME_CMD_IS_SEARCH_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_SEARCH_DIALOG))
+#define GNOME_CMD_SEARCH_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_SEARCH_DIALOG, GnomeCmdSearchDialogClass))
struct GnomeCmdSearchDialogPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]