1
1

* widget.c: Added assertions to prevent bugs like the one from

view.c(view_labels) from hiding that long.
Этот коммит содержится в:
Roland Illig 2006-02-03 14:28:54 +00:00
родитель 90bda57809
Коммит 36e8fec66c
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2006-02-03 Roland Illig <roland.illig@gmx.de>
* widget.c: Added assertions to prevent bugs like the one from
view.c(view_labels) from hiding that long.
2006-02-03 Pavel Tsekov <ptsekov@gmx.net>
* view.c (view_labels): Use `buttonbar_clear_label' to make a

Просмотреть файл

@ -26,6 +26,7 @@
#include <config.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
@ -2409,6 +2410,7 @@ buttonbar_set_label_data (Dlg_head *h, int idx, const char *text, buttonbarfn cb
if (!bb)
return;
assert (cback != (buttonbarfn) 0);
set_label_text (bb, idx, text);
bb->labels[idx - 1].tag = BBFUNC_PTR;
bb->labels[idx - 1].u.fn_ptr = cback;
@ -2423,6 +2425,7 @@ buttonbar_set_label (Dlg_head *h, int idx, const char *text, void (*cback) (void
if (!bb)
return;
assert (cback != (buttonbarfn) 0);
set_label_text (bb, idx, text);
bb->labels[idx - 1].tag = BBFUNC_VOID;
bb->labels[idx - 1].u.fn_void = cback;