[gnome-commander] noop: code cleanup (gnome_cmd_cmdline_get_type() -> GNOME_CMD_TYPE_CMDLINE)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_cmdline_get_type() -> GNOME_CMD_TYPE_CMDLINE)
- Date: Mon, 24 Jan 2011 22:11:29 +0000 (UTC)
commit e480bcafd3a98c606f955b8a00859bdaf92f8f34
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 24 22:48:20 2011 +0100
noop: code cleanup (gnome_cmd_cmdline_get_type() -> GNOME_CMD_TYPE_CMDLINE)
src/gnome-cmd-cmdline.cc | 2 +-
src/gnome-cmd-cmdline.h | 9 +++------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-cmdline.cc b/src/gnome-cmd-cmdline.cc
index 374010b..0adb516 100644
--- a/src/gnome-cmd-cmdline.cc
+++ b/src/gnome-cmd-cmdline.cc
@@ -264,7 +264,7 @@ static void init (GnomeCmdCmdline *cmdline)
GtkWidget *gnome_cmd_cmdline_new ()
{
- GnomeCmdCmdline *cmdline = (GnomeCmdCmdline *) gtk_type_new (gnome_cmd_cmdline_get_type ());
+ GnomeCmdCmdline *cmdline = (GnomeCmdCmdline *) gtk_type_new (GNOME_CMD_TYPE_CMDLINE);
gnome_cmd_cmdline_set_history (cmdline, gnome_cmd_data.cmdline_history);
update_history_combo (cmdline);
diff --git a/src/gnome-cmd-cmdline.h b/src/gnome-cmd-cmdline.h
index 8ecddf4..6222174 100644
--- a/src/gnome-cmd-cmdline.h
+++ b/src/gnome-cmd-cmdline.h
@@ -20,12 +20,9 @@
#ifndef __GNOME_CMD_CMDLINE_H__
#define __GNOME_CMD_CMDLINE_H__
-#define GNOME_CMD_CMDLINE(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_cmdline_get_type (), GnomeCmdCmdline)
-#define GNOME_CMD_CMDLINE_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_cmdline_get_type (), GnomeCmdCmdlineClass)
-#define GNOME_CMD_IS_CMDLINE(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_cmdline_get_type ())
+#define GNOME_CMD_TYPE_CMDLINE (gnome_cmd_cmdline_get_type ())
+#define GNOME_CMD_CMDLINE(obj) (GTK_CHECK_CAST (obj, GNOME_CMD_TYPE_CMDLINE, GnomeCmdCmdline))
+#define GNOME_CMD_IS_CMDLINE(obj) (GTK_CHECK_TYPE (obj, GNOME_CMD_TYPE_CMDLINE))
struct GnomeCmdCmdlinePrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]