mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* main.c (load_hint): Don't hardcode copyright years. Use a
translated message.
This commit is contained in:
parent
01e2780615
commit
87da6b9f42
@ -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>
|
||||
|
||||
|
16
src/main.c
16
src/main.c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user