749N/A/* $XConsortium: Sme.c,v 1.12 94/04/17 20:12:48 kaleb Exp $ */ 749N/ACopyright (c) 1989, 1994 X Consortium 749N/APermission is hereby granted, free of charge, to any person obtaining a copy 749N/Aof this software and associated documentation files (the "Software"), to deal 749N/Ain the Software without restriction, including without limitation the rights 749N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell 749N/Acopies of the Software, and to permit persons to whom the Software is 749N/Afurnished to do so, subject to the following conditions: 749N/AThe above copyright notice and this permission notice shall be included in 749N/Aall copies or substantial portions of the Software. 749N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 749N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 749N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 749N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 749N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 749N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 749N/AExcept as contained in this notice, the name of the X Consortium shall not be 749N/Aused in advertising or otherwise to promote the sale, use or other dealings 749N/Ain this Software without prior written authorization from the X Consortium. 749N/A * Sme.c - Source code for the generic menu entry 749N/A * Date: September 26, 1989 749N/A * By: Chris D. Peterson 749N/A * Semi Public function definitions. 749N/A /* class_name */ "Sme",
749N/A /* Simple Menu Entry Fields */ 749N/A/************************************************************ 749N/A * Semi-Public Functions. 749N/A ************************************************************/ 749N/A/* Function Name: ClassPartInitialize 749N/A * Description: handles inheritance of class functions. 749N/A * Arguments: class - the widget classs of this widget. 749N/A * We don't need to check for null super since we'll get to TextSink 749N/A/* Function Name: Initialize 749N/A * Description: Initializes the simple menu widget 749N/A * Arguments: request - the widget requested by the argument list. 749N/A * new - the new widget with both resource and non 749N/A * MENU ENTRIES CANNOT HAVE BORDERS. 749N/A/* Function Name: Highlight 749N/A * Description: The default highlight proceedure for menu entries. 749N/A * Arguments: w - the menu entry. 749N/A/* This space intentionally left blank. */ 749N/A/* Function Name: Unhighlight 749N/A * Description: The default unhighlight proceedure for menu entries. 749N/A * Arguments: w - the menu entry. 749N/A/* This space intentionally left blank. */ 749N/A/* Function Name: Notify 749N/A * Description: calls the callback proceedures for this entry. 749N/A * Arguments: w - the menu entry. 749N/A/* Function Name: QueryGeometry. 749N/A * Description: Returns the preferred geometry for this widget. 749N/A * Arguments: w - the menu entry object. 749N/A * itended, return - the intended and return geometry info. 749N/A * Returns: A Geometry Result. 749N/A * See the Intrinsics manual for details on what this function is for. 749N/A * I just return the height and a width of 1.