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

« back to all changes in this revision

Viewing changes to panel/p_hidden.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:
1
1
/****************************************************************************
2
 
 * Copyright (c) 1998-2000,2005 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2005,2009 Free Software Foundation, Inc.              *
3
3
 *                                                                          *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a  *
5
5
 * copy of this software and associated documentation files (the            *
29
29
/****************************************************************************
30
30
 *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1995                    *
31
31
 *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
 
32
 *     and: Juergen Pfeifer                         1997-1999,2008          *
32
33
 ****************************************************************************/
33
34
 
34
35
/* p_hidden.c
36
37
 */
37
38
#include "panel.priv.h"
38
39
 
39
 
MODULE_ID("$Id: p_hidden.c,v 1.7 2005/02/19 16:39:17 tom Exp $")
 
40
MODULE_ID("$Id: p_hidden.c,v 1.8 2009/04/11 19:01:56 tom Exp $")
40
41
 
41
42
NCURSES_EXPORT(int)
42
43
panel_hidden(const PANEL * pan)
43
44
{
 
45
  int rc = ERR;
 
46
 
44
47
  T((T_CALLED("panel_hidden(%p)"), pan));
45
 
  if (!pan)
46
 
    returnCode(ERR);
47
 
  returnCode(IS_LINKED(pan) ? FALSE : TRUE);
 
48
  if (pan)
 
49
    {
 
50
      GetHook(pan);
 
51
      rc = (IS_LINKED(pan) ? FALSE : TRUE);
 
52
    }
 
53
  returnCode(rc);
48
54
}