[gnome-commander] noop: code cleanup (gnome_cmd_chmod_component_get_type() -> GNOME_CMD_TYPE_CHMOD_COMPONENT)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup (gnome_cmd_chmod_component_get_type() -> GNOME_CMD_TYPE_CHMOD_COMPONENT)
- Date: Mon, 24 Jan 2011 22:11:14 +0000 (UTC)
commit 610438c23f4f3d2b8012158a0aaeb879e6b7f9b6
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jan 24 22:39:08 2011 +0100
noop: code cleanup (gnome_cmd_chmod_component_get_type() -> GNOME_CMD_TYPE_CHMOD_COMPONENT)
src/gnome-cmd-chmod-component.cc | 2 +-
src/gnome-cmd-chmod-component.h | 9 +++------
2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index f1291f9..aece1d6 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -170,7 +170,7 @@ static void init (GnomeCmdChmodComponent *comp)
GtkWidget *gnome_cmd_chmod_component_new (GnomeVFSFilePermissions perms)
{
- GnomeCmdChmodComponent *comp = (GnomeCmdChmodComponent *) gtk_type_new (gnome_cmd_chmod_component_get_type ());
+ GnomeCmdChmodComponent *comp = (GnomeCmdChmodComponent *) gtk_type_new (GNOME_CMD_TYPE_CHMOD_COMPONENT);
gnome_cmd_chmod_component_set_perms (comp, perms);
diff --git a/src/gnome-cmd-chmod-component.h b/src/gnome-cmd-chmod-component.h
index ac947dd..837a793 100644
--- a/src/gnome-cmd-chmod-component.h
+++ b/src/gnome-cmd-chmod-component.h
@@ -23,12 +23,9 @@
#include "gnome-cmd-file.h"
-#define GNOME_CMD_CHMOD_COMPONENT(obj) \
- GTK_CHECK_CAST (obj, gnome_cmd_chmod_component_get_type (), GnomeCmdChmodComponent)
-#define GNOME_CMD_CHMOD_COMPONENT_CLASS(klass) \
- GTK_CHECK_CLASS_CAST (klass, gnome_cmd_chmod_component_get_type (), GnomeCmdChmodComponentClass)
-#define GNOME_CMD_IS_CHMOD_COMPONENT(obj) \
- GTK_CHECK_TYPE (obj, gnome_cmd_chmod_component_get_type ())
+#define GNOME_CMD_TYPE_CHMOD_COMPONENT (gnome_cmd_chmod_component_get_type ())
+#define GNOME_CMD_CHMOD_COMPONENT(obj) (GTK_CHECK_CAST (obj, GNOME_CMD_TYPE_CHMOD_COMPONENT, GnomeCmdChmodComponent))
+#define GNOME_CMD_IS_CHMOD_COMPONENT(obj) (GTK_CHECK_TYPE (obj, GNOME_CMD_TYPE_CHMOD_COMPONENT))
struct GnomeCmdChmodComponentPrivate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]