* main.c (load_hint): Don't hardcode copyright years. Use a

translated message.
This commit is contained in:
Pavel Roskin 2002-09-05 16:36:43 +00:00
parent 01e2780615
commit 87da6b9f42
2 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,8 @@
2002-09-05 Pavel Roskin <proski@gnu.org>
* main.c (load_hint): Don't hardcode copyright years. Use a
translated message.
* main.c (midnight_callback): Avoid calling the default DLG_DRAW
handler. From David Martin <dmartina@excite.com>

View File

@ -1807,25 +1807,29 @@ midnight_callback (struct Dlg_head *h, int id, int msg)
#define xtoolkit_panel_setup()
void load_hint (void)
void
load_hint (void)
{
char *hint;
if (!the_hint->widget.parent)
return;
if (!message_visible && (!xterm_flag || !xterm_hintbar)){
label_set_text (the_hint, 0);
if (!message_visible && (!xterm_flag || !xterm_hintbar)) {
label_set_text (the_hint, 0);
return;
}
if ((hint = get_random_hint ())){
if ((hint = get_random_hint ())) {
if (*hint)
set_hintbar (hint);
g_free (hint);
} else {
set_hintbar ("The Midnight Commander " VERSION
" (C) 1995-1997 the Free Software Foundation");
char text[BUF_SMALL];
g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s\n"),
VERSION);
set_hintbar (text);
}
}