calcurse version removed from menu titles

This commit is contained in:
Frederic Culot 2009-07-12 17:55:13 +00:00
parent 834a7e9aaf
commit 976159fa56
4 changed files with 15 additions and 14 deletions

View File

@ -3,7 +3,12 @@
* configure.ac * configure.ac
* src/var.h: sdtbool header removed, unsigned type use instead * src/var.h: sdtbool header removed, unsigned type use instead
* mem.c (xmalloc, xcalloc, xrealloc, xstrdup, xfree): new functions * mem.c (xmalloc, xcalloc, xrealloc, xstrdup, xfree): new
functions
* src/custom.c
* src/help.c
* src/notify.c: calcurse version removed from menu titles
2009-07-11 Frederic Culot <frederic@culot.org> 2009-07-11 Frederic Culot <frederic@culot.org>

View File

@ -1,4 +1,4 @@
/* $calcurse: custom.c,v 1.40 2009/07/12 16:22:00 culot Exp $ */ /* $calcurse: custom.c,v 1.41 2009/07/12 17:55:13 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -448,8 +448,7 @@ display_layout_config (window_t *lwin, int mark, int cursor, int need_reset)
{ {
char label[BUFSIZ]; char label[BUFSIZ];
(void)snprintf (label, BUFSIZ, _("CalCurse %s | layout configuration"), (void)snprintf (label, BUFSIZ, _("layout configuration"));
VERSION);
custom_confwin_init (lwin, label); custom_confwin_init (lwin, label);
} }
@ -661,7 +660,7 @@ display_color_config (window_t *cwin, int *mark_fore, int *mark_back,
if (need_reset) if (need_reset)
{ {
(void)snprintf (label, BUFSIZ, _("CalCurse %s | color theme"), VERSION); (void)snprintf (label, BUFSIZ, _("color theme"));
custom_confwin_init (cwin, label); custom_confwin_init (cwin, label);
} }
@ -1003,8 +1002,7 @@ custom_general_config (conf_t *conf)
clear (); clear ();
conf_set_scrsize (&cwin); conf_set_scrsize (&cwin);
(void)snprintf (cwin.label, BUFSIZ, _("CalCurse %s | general options"), (void)snprintf (cwin.label, BUFSIZ, _("general options"));
VERSION);
wins_scrollwin_init (&cwin); wins_scrollwin_init (&cwin);
wins_show (cwin.win.p, cwin.label); wins_show (cwin.win.p, cwin.label);
status_mesg (number_str, keys); status_mesg (number_str, keys);
@ -1203,8 +1201,7 @@ custom_keys_config (void)
clear (); clear ();
conf_set_scrsize (&kwin); conf_set_scrsize (&kwin);
nbdisplayed = (kwin.win.h - LABELLINES) / LINESPERKEY; nbdisplayed = (kwin.win.h - LABELLINES) / LINESPERKEY;
(void)snprintf (kwin.label, BUFSIZ, _("CalCurse %s | keys configuration"), (void)snprintf (kwin.label, BUFSIZ, _("keys configuration"));
VERSION);
wins_scrollwin_init (&kwin); wins_scrollwin_init (&kwin);
wins_show (kwin.win.p, kwin.label); wins_show (kwin.win.p, kwin.label);
custom_keys_config_bar (); custom_keys_config_bar ();

View File

@ -1,4 +1,4 @@
/* $calcurse: help.c,v 1.40 2009/07/05 20:33:19 culot Exp $ */ /* $calcurse: help.c,v 1.41 2009/07/12 17:55:14 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -165,7 +165,7 @@ help_wins_init (scrollwin_t *hwin, int x, int y, int h, int w)
hwin->pad.h = BUFSIZ; hwin->pad.h = BUFSIZ;
hwin->pad.w = hwin->win.w - 2 * PADOFFSET + 1; hwin->pad.w = hwin->win.w - 2 * PADOFFSET + 1;
(void)snprintf (hwin->label, BUFSIZ, _("Calcurse %s | help"), VERSION); (void)snprintf (hwin->label, BUFSIZ, _("Calcurse help"));
wins_scrollwin_init (hwin); wins_scrollwin_init (hwin);
wins_show (hwin->win.p, hwin->label); wins_show (hwin->win.p, hwin->label);
} }

View File

@ -1,4 +1,4 @@
/* $calcurse: notify.c,v 1.39 2009/07/05 20:33:22 culot Exp $ */ /* $calcurse: notify.c,v 1.40 2009/07/12 17:55:14 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -568,8 +568,7 @@ notify_config_bar (void)
int ch = 0, change_win = 1; int ch = 0, change_win = 1;
buf = mem_malloc (BUFSIZ); buf = mem_malloc (BUFSIZ);
(void)snprintf (label, BUFSIZ, _("CalCurse %s | notify-bar options"), (void)snprintf (label, BUFSIZ, _("notify-bar options"));
VERSION);
conf_win.p = 0; conf_win.p = 0;
custom_confwin_init (&conf_win, label); custom_confwin_init (&conf_win, label);