Mercurial > emacs
view oldXMenu/SetPane.c @ 112288:81d8294d0c45
* coding.c (decode_coding_emacs_mule): Remove unreachable code.
This is a typo left over from revno 95090 dated 2009-03-06,
which fixed Bug#2370. Caught by Sun cc.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 16 Jan 2011 18:55:28 -0800 |
parents | ef719132ddfa |
children |
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(register XMenu *menu, register int p_num, register int active) /* Menu object to be modified. */ /* Pane number to be modified. */ /* 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); }