Merge branch 'master' of git.philpep.org:wmfs into philpep

This commit is contained in:
Philippe Pepiot 2010-04-19 13:59:23 +02:00
commit 2da44ff4d8
2 changed files with 8 additions and 2 deletions

View File

@ -389,7 +389,7 @@ tag_new(int s, char *name)
tags[s][conf.ntag[s]] = t;
tags[s][conf.ntag[s]].name = _strdup(((strlen(name)) ? name : "new tag"));
tags[s][conf.ntag[s]].name = _strdup((name ? name : "new tag"));
infobar_update_taglist(s);
infobar_draw(s);
@ -405,6 +405,7 @@ uicb_tag_new(uicb_t cmd)
{
screen_get_sel();
tag_new(selscreen, (char*)cmd);
return;
@ -455,9 +456,13 @@ tag_delete(int s, int tag)
void
uicb_tag_del(uicb_t cmd)
{
int n;
screen_get_sel();
tag_delete(selscreen, ((strlen((char*)cmd)) ? atoi(cmd) : seltag[selscreen]));
n = (cmd ? atoi(cmd) : seltag[selscreen]);
tag_delete(selscreen, n);
return;
}

View File

@ -40,6 +40,7 @@
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <ctype.h>
#include <fcntl.h>
#include <time.h>
#include <getopt.h>