mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +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>
|
2006-02-05 Pavel Tsekov <ptsekov@gmx.net>
|
||||||
|
|
||||||
* hotlist.c (hotlist_has_dot_dot): Define new global
|
* 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
|
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);
|
WButtonBar *bb = find_buttonbar (h);
|
||||||
|
|
||||||
if (!bb)
|
if (!bb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
assert (cback != (buttonbarfn) 0);
|
assert (cback != (voidfn) 0);
|
||||||
set_label_text (bb, idx, text);
|
set_label_text (bb, idx, text);
|
||||||
bb->labels[idx - 1].tag = BBFUNC_VOID;
|
bb->labels[idx - 1].tag = BBFUNC_VOID;
|
||||||
bb->labels[idx - 1].u.fn_void = cback;
|
bb->labels[idx - 1].u.fn_void = cback;
|
||||||
|
Loading…
Reference in New Issue
Block a user