view oldXMenu/SetPane.c @ 101460:27ea311fecfa

2009-01-25 Carsten Dominik <dominik@science.uva.nl> * org.texi (References): Add information about remote references. (Built-in table editor): Document `C-c RET' in tables. (Math symbols, Quoting LaTeX code): Mention that simple LaTeX macros survive LaTeX export. (Images in LaTeX export): Show how to create a reference to a figure. (Sectioning structure): Document that the LaTeX class can be specified in a property. (Text areas in HTML export): New section. (External links): Add examples for text search and ID links. (Built-in table editor): Remove the descriptio of `C-c C-q', it not longer works. (Literal examples): Document that a space must follow the colon in short examples. (Relative timer): Document `org-timer-stop'. (Footnotes): New section. (Footnote markup): Shorten section and refer to new Footnote section. (Literal examples): Add documentation for line numbering in and references to code examples. (CSS support): Fix the description of default CSS styles. (Capturing column view): Document "file:path/to/file.org" as an allowed value for the ID property of a dynamic block copying column view.
author Carsten Dominik <dominik@science.uva.nl>
date Sun, 25 Jan 2009 15:54:29 +0000
parents fec5e03aaf59
children edf631bdbb7a ec58e5c426ef 5cc91198ffb2
line wrap: on
line source

/* Copyright    Massachusetts Institute of Technology    1985	*/

#include "copyright.h"


/*
 * XMenu:	MIT Project Athena, X Window system menu package
 *
 *	XMenuSetPane - Set a menu pane to be active or inactive.
 *
 *	Author:		Tony Della Fera, DEC
 *			August, 1985
 *
 */

#include "XMenuInt.h"

int
XMenuSetPane(menu, p_num, active)
    register XMenu *menu;	/* Menu object to be modified. */
    register int p_num;		/* Pane number to be modified. */
    register int active;	/* Make selection active? */
{
    register XMPane *p_ptr;	/* XMPane pointer. */

    /*
     * Find the right pane.
     */
    p_ptr = _XMGetPanePtr(menu, p_num);
    if (p_ptr == NULL) return(XM_FAILURE);

    /*
     * Set its active switch.
     */
    p_ptr->active = active;
    if (p_ptr->active == False) p_ptr->activated = False;

    /*
     * Return the pane number just set.
     */
    _XMErrorCode = XME_NO_ERROR;
    return(p_num);
}

/* arch-tag: 90bc8d90-031d-41a2-a2c6-04bf94efbc90
   (do not change this comment) */