Use PROGNAME_VIEW for view(1)
This commit is contained in:
parent
2bf5115d0f
commit
c13e3c070f
10
src/view.c
10
src/view.c
|
@ -53,8 +53,8 @@ static char const _license[] =
|
||||||
#include "common.c"
|
#include "common.c"
|
||||||
|
|
||||||
/* constants */
|
/* constants */
|
||||||
#ifndef PROGNAME
|
#ifndef PROGNAME_VIEW
|
||||||
# define PROGNAME "view"
|
# define PROGNAME_VIEW "view"
|
||||||
#endif
|
#endif
|
||||||
#ifndef PROGNAME_PROPERTIES
|
#ifndef PROGNAME_PROPERTIES
|
||||||
# define PROGNAME_PROPERTIES "properties"
|
# define PROGNAME_PROPERTIES "properties"
|
||||||
|
@ -463,7 +463,7 @@ static void _error_response(GtkWidget * widget, gint arg, gpointer data)
|
||||||
|
|
||||||
static int _error_text(char const * message, int ret)
|
static int _error_text(char const * message, int ret)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: %s\n", PROGNAME, message);
|
fprintf(stderr, "%s: %s\n", PROGNAME_VIEW, message);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -607,7 +607,7 @@ static void _view_on_file_close(gpointer data)
|
||||||
/* view_on_help_contents */
|
/* view_on_help_contents */
|
||||||
static void _view_on_help_contents(gpointer data)
|
static void _view_on_help_contents(gpointer data)
|
||||||
{
|
{
|
||||||
desktop_help_contents(PACKAGE, PROGNAME);
|
desktop_help_contents(PACKAGE, PROGNAME_VIEW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -669,7 +669,7 @@ static void _view_on_properties(gpointer data)
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("Usage: %s file...\n"), PROGNAME);
|
fprintf(stderr, _("Usage: %s file...\n"), PROGNAME_VIEW);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user