mirror of https://github.com/MidnightCommander/mc
* widget.[ch] (label_new): Make text parameter const.
This commit is contained in:
parent
78dbe61c6a
commit
8611daeb0c
|
@ -1,3 +1,14 @@
|
|||
2001-07-31 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* util.c [!HAVE_X] (is_printable): Don't duplicate declarations from
|
||||
main.h.
|
||||
(load_file): Use fopen and fstat to prevent race conditions.
|
||||
(size_trunc): Make suffix const array.
|
||||
(strip_password): Make prefixes const array.
|
||||
(file_date): Make fmt auto variable.
|
||||
* color.c (color_table): Make constant array.
|
||||
* widget.[ch] (label_new): Make text parameter const.
|
||||
|
||||
2001-07-31 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* charsets.c: Warning fixes.
|
||||
|
|
|
@ -627,7 +627,7 @@ label_destroy (WLabel *l)
|
|||
}
|
||||
|
||||
WLabel *
|
||||
label_new (int y, int x, char *text, char *tkname)
|
||||
label_new (int y, int x, const char *text, char *tkname)
|
||||
{
|
||||
WLabel *l = g_new (WLabel, 1);
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ WButton *button_new (int y, int x, int action, int flags, char *text,
|
|||
WRadio *radio_new (int y, int x, int count, char **text, int use_hotkey, char *tkname);
|
||||
WCheck *check_new (int y, int x, int state, char *text, char *tkname);
|
||||
WInput *input_new (int y, int x, int color, int len, const char *text, char *tkname);
|
||||
WLabel *label_new (int y, int x, char *text, char *tkname);
|
||||
WLabel *label_new (int y, int x, const char *text, char *tkname);
|
||||
WGauge *gauge_new (int y, int x, int shown, int max, int current, char *tkname);
|
||||
WListbox *listbox_new (int x, int y, int width, int height, int action,
|
||||
lcback, char *tkname);
|
||||
|
|
Loading…
Reference in New Issue