mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* src/widget.c (buttonbar_set_label): Fix `comparison of distinct pointer types
lacks a cast' gcc warning.
This commit is contained in:
parent
d39462622b
commit
3652302618
@ -1,3 +1,8 @@
|
||||
2006-02-06 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* widget.c (buttonbar_set_label): Fix `comparison of distinct
|
||||
pointer types lacks a cast' gcc warning.
|
||||
|
||||
2006-02-05 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* hotlist.c (hotlist_has_dot_dot): Define new global
|
||||
|
@ -2418,14 +2418,14 @@ buttonbar_set_label_data (Dlg_head *h, int idx, const char *text, buttonbarfn cb
|
||||
}
|
||||
|
||||
void
|
||||
buttonbar_set_label (Dlg_head *h, int idx, const char *text, void (*cback) (void))
|
||||
buttonbar_set_label (Dlg_head *h, int idx, const char *text, voidfn cback)
|
||||
{
|
||||
WButtonBar *bb = find_buttonbar (h);
|
||||
|
||||
if (!bb)
|
||||
return;
|
||||
|
||||
assert (cback != (buttonbarfn) 0);
|
||||
assert (cback != (voidfn) 0);
|
||||
set_label_text (bb, idx, text);
|
||||
bb->labels[idx - 1].tag = BBFUNC_VOID;
|
||||
bb->labels[idx - 1].u.fn_void = cback;
|
||||
|
Loading…
Reference in New Issue
Block a user