Use PROGNAME_PANELCTL for panelctl(1)

This commit is contained in:
Pierre Pronchery 2018-02-10 15:25:53 +01:00
parent 28116fb3c2
commit 7998962715

View File

@ -27,8 +27,8 @@
#define _(string) gettext(string)
/* constants */
#ifndef PROGNAME
# define PROGNAME "panelctl"
#ifndef PROGNAME_PANELCTL
# define PROGNAME_PANELCTL "panelctl"
#endif
#ifndef PREFIX
# define PREFIX "/usr/local"
@ -62,7 +62,7 @@ static int _panelctl(PanelMessageShow what, gboolean show)
/* error */
static int _error(char const * message, int ret)
{
fputs(PROGNAME ": ", stderr);
fputs(PROGNAME_PANELCTL ": ", stderr);
perror(message);
return ret;
}
@ -80,7 +80,7 @@ static int _usage(void)
" -b Hide the bottom panel\n"
" -l Hide the left panel\n"
" -r Hide the right panel\n"
" -t Hide the top panel\n"), PROGNAME);
" -t Hide the top panel\n"), PROGNAME_PANELCTL);
return 1;
}