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

« back to all changes in this revision

Viewing changes to menu/menu.priv.h

  • 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-2004,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            *
30
30
 *   Author:  Juergen Pfeifer, 1995,1997                                    *
31
31
 ****************************************************************************/
32
32
 
33
 
/* $Id: menu.priv.h,v 1.22 2005/01/16 01:02:23 tom Exp $ */
 
33
/* $Id: menu.priv.h,v 1.23 2009/02/28 21:02:57 juergen Exp $ */
34
34
 
35
35
/***************************************************************************
36
36
* Module menu.priv.h                                                       *
56
56
/* Normalize menu to default if none was given */
57
57
#define Normalize_Menu( menu ) ((menu)=(menu)?(menu):&_nc_Default_Menu)
58
58
 
 
59
#define Get_Menu_Screen( menu ) (menu->userwin ? \
 
60
                                 _nc_screen_of(menu->userwin) : CURRENT_SCREEN)
 
61
 
59
62
/* Get the user defined (framing) window of the menu */
60
 
#define Get_Menu_UserWin(menu) ((menu)->userwin ? (menu)->userwin : stdscr)
 
63
#define Get_Menu_UserWin(menu) ((menu)->userwin ? \
 
64
    (menu)->userwin : CURRENT_SCREEN->_stdscr)
61
65
 
62
66
/* Normalize menu window */
63
67
#define Get_Menu_Window(  menu ) \