Using PROGNAME when displaying the help contents as well

This commit is contained in:
Pierre Pronchery 2013-11-24 03:47:11 +01:00
parent f4f322a509
commit 989d63b8fd

View File

@ -29,6 +29,11 @@ static char const _license[] =
#define _(string) gettext(string) #define _(string) gettext(string)
#define N_(string) (string) #define N_(string) (string)
/* constants */
#ifndef PROGNAME
# define PROGNAME "camera"
#endif
/* CameraWindow */ /* CameraWindow */
/* private */ /* private */
@ -220,7 +225,7 @@ static gboolean _camerawindow_on_closex(gpointer data)
/* camerawindow_on_contents */ /* camerawindow_on_contents */
static void _camerawindow_on_contents(gpointer data) static void _camerawindow_on_contents(gpointer data)
{ {
desktop_help_contents(PACKAGE, "camera"); desktop_help_contents(PACKAGE, PROGNAME);
} }