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

« back to all changes in this revision

Viewing changes to panel/p_hide.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-05-24 15:13:01 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524151301-uixgxq2zonfov2nr
Tags: 5.7+20090523-1
MergingĀ upstreamĀ versionĀ 5.7+20090523.

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_hide.c,v 1.9 2005/02/19 16:39:41 tom Exp $")
 
39
MODULE_ID("$Id: p_hide.c,v 1.10 2009/02/07 23:11:45 tom Exp $")
40
40
 
41
41
NCURSES_EXPORT(int)
42
42
hide_panel(register PANEL * pan)
43
43
{
44
 
  int err = OK;
 
44
  int err = ERR;
45
45
 
46
46
  T((T_CALLED("hide_panel(%p)"), pan));
47
 
  if (!pan)
48
 
    returnCode(ERR);
49
 
 
50
 
  dBug(("--> hide_panel %s", USER_PTR(pan->user)));
51
 
  dStack("<u%d>", 1, pan);
52
 
 
53
 
  HIDE_PANEL(pan, err, ERR);
54
 
 
55
 
  dStack("<u%d>", 9, pan);
56
 
 
 
47
 
 
48
  if (pan)
 
49
    {
 
50
      GetHook(pan);
 
51
 
 
52
      dBug(("--> hide_panel %s", USER_PTR(pan->user)));
 
53
      dStack("<u%d>", 1, pan);
 
54
 
 
55
      HIDE_PANEL(pan, err, ERR);
 
56
 
 
57
      err = OK;
 
58
 
 
59
      dStack("<u%d>", 9, pan);
 
60
    }
57
61
  returnCode(err);
58
62
}