Code cleanup
This commit is contained in:
parent
9f164af7a4
commit
23c5951024
|
@ -1,6 +1,6 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
static char const _copyright[] =
|
static char const _copyright[] =
|
||||||
"Copyright (c) 2012 Pierre Pronchery <khorben@defora.org>";
|
"Copyright (c) 2012-2013 Pierre Pronchery <khorben@defora.org>";
|
||||||
/* This file is part of DeforaOS Desktop Surfer */
|
/* This file is part of DeforaOS Desktop Surfer */
|
||||||
static char const _license[] =
|
static char const _license[] =
|
||||||
"This program is free software: you can redistribute it and/or modify\n"
|
"This program is free software: you can redistribute it and/or modify\n"
|
||||||
|
@ -72,6 +72,7 @@ static int _helper_open_dialog(Helper * helper);
|
||||||
static int _helper_open_man(Helper * helper, int section, char const * page);
|
static int _helper_open_man(Helper * helper, int section, char const * page);
|
||||||
static int _helper_open_devel(Helper * helper, char const * package);
|
static int _helper_open_devel(Helper * helper, char const * package);
|
||||||
|
|
||||||
|
static int _error(char const * message, int ret);
|
||||||
static int _usage(void);
|
static int _usage(void);
|
||||||
|
|
||||||
/* callbacks */
|
/* callbacks */
|
||||||
|
@ -483,6 +484,15 @@ static void _helper_on_view_fullscreen(gpointer data)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* error */
|
||||||
|
static int _error(char const * message, int ret)
|
||||||
|
{
|
||||||
|
fputs("helper: ", stderr);
|
||||||
|
perror(message);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
|
@ -759,7 +769,8 @@ int main(int argc, char * argv[])
|
||||||
char * p;
|
char * p;
|
||||||
Helper * helper;
|
Helper * helper;
|
||||||
|
|
||||||
setlocale(LC_ALL, "");
|
if(setlocale(LC_ALL, "") == NULL)
|
||||||
|
_error("setlocale", 1);
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
gtk_init(&argc, &argv);
|
gtk_init(&argc, &argv);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user