* 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> 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 * main.c (midnight_callback): Avoid calling the default DLG_DRAW
handler. From David Martin <dmartina@excite.com> 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() #define xtoolkit_panel_setup()
void load_hint (void) void
load_hint (void)
{ {
char *hint; char *hint;
if (!the_hint->widget.parent) if (!the_hint->widget.parent)
return; return;
if (!message_visible && (!xterm_flag || !xterm_hintbar)){ if (!message_visible && (!xterm_flag || !xterm_hintbar)) {
label_set_text (the_hint, 0); label_set_text (the_hint, 0);
return; return;
} }
if ((hint = get_random_hint ())){ if ((hint = get_random_hint ())) {
if (*hint) if (*hint)
set_hintbar (hint); set_hintbar (hint);
g_free (hint); g_free (hint);
} else { } else {
set_hintbar ("The Midnight Commander " VERSION char text[BUF_SMALL];
" (C) 1995-1997 the Free Software Foundation");
g_snprintf (text, sizeof (text), _("GNU Midnight Commander %s\n"),
VERSION);
set_hintbar (text);
} }
} }