Deleted Added
full compact
p_replace.c (50276) p_replace.c (56639)
1/****************************************************************************
2 * Copyright (c) 1998 Free Software Foundation, Inc. *
3 * *
4 * Permission is hereby granted, free of charge, to any person obtaining a *
5 * copy of this software and associated documentation files (the *
6 * "Software"), to deal in the Software without restriction, including *
7 * without limitation the rights to use, copy, modify, merge, publish, *
8 * distribute, distribute with modifications, sublicense, and/or sell *

--- 22 unchanged lines hidden (view full) ---

31 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
32 ****************************************************************************/
33
34/* p_replace.c
35 * Replace a panels window.
36 */
37#include "panel.priv.h"
38
1/****************************************************************************
2 * Copyright (c) 1998 Free Software Foundation, Inc. *
3 * *
4 * Permission is hereby granted, free of charge, to any person obtaining a *
5 * copy of this software and associated documentation files (the *
6 * "Software"), to deal in the Software without restriction, including *
7 * without limitation the rights to use, copy, modify, merge, publish, *
8 * distribute, distribute with modifications, sublicense, and/or sell *

--- 22 unchanged lines hidden (view full) ---

31 * and: Eric S. Raymond <esr@snark.thyrsus.com> *
32 ****************************************************************************/
33
34/* p_replace.c
35 * Replace a panels window.
36 */
37#include "panel.priv.h"
38
39MODULE_ID("$Id: p_replace.c,v 1.2 1998/02/11 12:14:01 tom Exp $")
39MODULE_ID("$Id: p_replace.c,v 1.3 1999/09/29 15:22:32 juergen Exp $")
40
41int
42replace_panel(PANEL *pan, WINDOW *win)
43{
44 if(!pan)
45 return(ERR);
46 if(_nc_panel_is_linked(pan))
40
41int
42replace_panel(PANEL *pan, WINDOW *win)
43{
44 if(!pan)
45 return(ERR);
46 if(_nc_panel_is_linked(pan))
47 _nc_override(pan,P_TOUCH);
47 PANEL_UPDATE(pan,(PANEL*)0);
48 pan->win = win;
48 pan->win = win;
49 if(_nc_panel_is_linked(pan))
50 _nc_calculate_obscure();
51 return(OK);
52}
49 return(OK);
50}