summaryrefslogtreecommitdiff
path: root/src/group.c
diff options
context:
space:
mode:
authorAli Gholami Rudi <aliqrudi@gmail.com>2008-10-11 08:33:32 +0330
committerShawn <sabetts@juicebox.(none)>2008-10-12 17:11:54 -0700
commit2557e59fc5ce7690d05856b04e0ea5aaff6f9f60 (patch)
tree1cdb0859bfb23b581144df7c2b9664d5b32e5ab9 /src/group.c
parent96f8765e306e2a5ed27546d2fec9b08613d369c2 (diff)
downloadratpoison-2557e59fc5ce7690d05856b04e0ea5aaff6f9f60.zip
add grename command
Diffstat (limited to 'src/group.c')
-rw-r--r--src/group.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/group.c b/src/group.c
index e5d66f9..069b677 100644
--- a/src/group.c
+++ b/src/group.c
@@ -101,6 +101,14 @@ group_add_new_group (char *name)
return g;
}
+void
+group_rename (rp_group *g, char *name)
+{
+ if (g->name)
+ free (g->name);
+ g->name = xstrdup (name);
+}
+
rp_group *
group_next_group (void)
{