mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-09 01:21:25 +03:00
* dlg.c (add_widget): Check for what is not NULL
before everything else.
This commit is contained in:
parent
51b1972843
commit
35db7bf645
@ -1,3 +1,8 @@
|
|||||||
|
2001-11-07 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
|
* dlg.c (add_widget): Check for what is not NULL
|
||||||
|
before everything else.
|
||||||
|
|
||||||
2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
|
2001-10-29 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
* charsets.c (load_codepages_list): Use glib memory allocation
|
* charsets.c (load_codepages_list): Use glib memory allocation
|
||||||
|
@ -233,14 +233,14 @@ int add_widget (Dlg_head *where, void *what)
|
|||||||
Widget_Item *back;
|
Widget_Item *back;
|
||||||
Widget *widget = (Widget *) what;
|
Widget *widget = (Widget *) what;
|
||||||
|
|
||||||
/* Only used by Tk */
|
|
||||||
widget->frame = the_frame;
|
|
||||||
|
|
||||||
/* Don't accept 0 widgets, this could be from widgets that could not */
|
/* Don't accept 0 widgets, this could be from widgets that could not */
|
||||||
/* initialize properly */
|
/* initialize properly */
|
||||||
if (!what)
|
if (!what)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* Only used by Tk */
|
||||||
|
widget->frame = the_frame;
|
||||||
|
|
||||||
widget->x += where->x;
|
widget->x += where->x;
|
||||||
widget->y += where->y;
|
widget->y += where->y;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user