gnome-commander r2439 - branches/gcmd-1-3/src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2439 - branches/gcmd-1-3/src
- Date: Mon, 19 Jan 2009 18:37:09 +0000 (UTC)
Author: epiotr
Date: Mon Jan 19 18:37:09 2009
New Revision: 2439
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2439&view=rev
Log:
Code cleanup
Modified:
branches/gcmd-1-3/src/gnome-cmd-chown-component.cc
branches/gcmd-1-3/src/gnome-cmd-chown-component.h
Modified: branches/gcmd-1-3/src/gnome-cmd-chown-component.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-chown-component.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-chown-component.cc Mon Jan 19 18:37:09 2009
@@ -143,7 +143,6 @@
}
-
GtkType gnome_cmd_chown_component_get_type ()
{
static GtkType type = 0;
@@ -168,8 +167,7 @@
}
-void
-gnome_cmd_chown_component_set (GnomeCmdChownComponent *comp, uid_t owner, gid_t group)
+void gnome_cmd_chown_component_set (GnomeCmdChownComponent *comp, uid_t owner, gid_t group)
{
const gchar *s_owner = OWNER_get_name_by_uid (owner);
const gchar *s_group = OWNER_get_name_by_gid (group);
@@ -179,21 +177,17 @@
}
-uid_t
-gnome_cmd_chown_component_get_owner (GnomeCmdChownComponent *component)
+uid_t gnome_cmd_chown_component_get_owner (GnomeCmdChownComponent *component)
{
const gchar *s_owner = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (component->priv->user_combo)->entry));
- uid_t owner = OWNER_get_uid_by_name (s_owner);
- return owner;
+ return OWNER_get_uid_by_name (s_owner);
}
-gid_t
-gnome_cmd_chown_component_get_group (GnomeCmdChownComponent *component)
+gid_t gnome_cmd_chown_component_get_group (GnomeCmdChownComponent *component)
{
const gchar *s_group = gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (component->priv->group_combo)->entry));
- gid_t group = OWNER_get_gid_by_name (s_group);
- return group;
+ return OWNER_get_gid_by_name (s_group);
}
Modified: branches/gcmd-1-3/src/gnome-cmd-chown-component.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-chown-component.h (original)
+++ branches/gcmd-1-3/src/gnome-cmd-chown-component.h Mon Jan 19 18:37:09 2009
@@ -49,19 +49,11 @@
};
-GtkWidget*
-gnome_cmd_chown_component_new ();
+GtkWidget *gnome_cmd_chown_component_new ();
+GtkType gnome_cmd_chown_component_get_type ();
-GtkType
-gnome_cmd_chown_component_get_type ();
-
-void
-gnome_cmd_chown_component_set (GnomeCmdChownComponent *comp, uid_t owner, gid_t group);
-
-uid_t
-gnome_cmd_chown_component_get_owner (GnomeCmdChownComponent *component);
-
-gid_t
-gnome_cmd_chown_component_get_group (GnomeCmdChownComponent *component);
+void gnome_cmd_chown_component_set (GnomeCmdChownComponent *comp, uid_t owner, gid_t group);
+uid_t gnome_cmd_chown_component_get_owner (GnomeCmdChownComponent *component);
+gid_t gnome_cmd_chown_component_get_group (GnomeCmdChownComponent *component);
#endif // __GNOME_CMD_CHOWN_COMPONENT_H__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]