~ubuntu-branches/debian/sid/ncurses/sid-200908151531

« back to all changes in this revision

Viewing changes to panel/p_replace.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-05 21:34:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20081105213400-7d9r3jj2ngz18k24
Tags: 5.7-1
* Merging upstream version 5.7.
* Updating soname and sodepver to 5.7 in rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 */
37
37
#include "panel.priv.h"
38
38
 
39
 
MODULE_ID("$Id: p_replace.c,v 1.10 2009/02/07 23:11:45 tom Exp $")
 
39
MODULE_ID("$Id: p_replace.c,v 1.9 2005/02/19 16:41:31 tom Exp $")
40
40
 
41
41
NCURSES_EXPORT(int)
42
42
replace_panel(PANEL * pan, WINDOW *win)
43
43
{
44
 
  int rc = ERR;
45
 
 
46
44
  T((T_CALLED("replace_panel(%p,%p)"), pan, win));
47
45
 
48
 
  if (pan)
 
46
  if (!pan)
 
47
    returnCode(ERR);
 
48
 
 
49
  if (IS_LINKED(pan))
49
50
    {
50
 
      GetHook(pan);
51
 
      if (IS_LINKED(pan))
52
 
        {
53
 
          Touchpan(pan);
54
 
          PANEL_UPDATE(pan, (PANEL *) 0);
55
 
        }
56
 
      pan->win = win;
57
 
      rc = OK;
 
51
      Touchpan(pan);
 
52
      PANEL_UPDATE(pan, (PANEL *) 0);
58
53
    }
59
 
  returnCode(rc);
 
54
 
 
55
  pan->win = win;
 
56
 
 
57
  returnCode(OK);
60
58
}