mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +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>
|
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>
|
||||||
|
|
||||||
|
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()
|
#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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user