+/* Copyright Massachusetts Institute of Technology 1985 */
+
#include "copyright.h"
-/* $Header: /u/src/emacs/19.0/oldXMenu/RCS/AddSel.c,v 1.1 1992/04/11 22:10:17 jimb Exp $ */
-/* Copyright Massachusetts Institute of Technology 1985 */
/*
* XMenu: MIT Project Athena, X Window system menu package
#include "XMenuInt.h"
int
-XMenuAddSelection(display, menu, p_num, data, label, active)
+XMenuAddSelection(display, menu, p_num, data, label, active, help)
Display *display;
register XMenu *menu; /* Menu object to be modified. */
register int p_num; /* Pane number to be modified. */
char *data; /* Data value. */
char *label; /* Selection label. */
int active; /* Make selection active? */
+ char *help; /* Help string */
{
register XMPane *pane; /* Pane containing the new selection. */
register XMSelect *select; /* Newly created selection. */
int label_length; /* Label lenght in characters. */
int label_width; /* Label width in pixels. */
-
+
/*
* Check for NULL pointers!
*/
*/
label_length = strlen(label);
label_width = XTextWidth(menu->s_fnt_info, label, label_length);
-
+
/*
* Fill the XMSelect structure.
*/
select->label_length = label_length;
select->data = data;
select->parent_p = pane;
-
+ select->help_string = help;
+
/*
* Insert the selection at the end of the selection list.
*/
_XMErrorCode = XME_NO_ERROR;
return((pane->s_count - 1));
}
+
+/* arch-tag: 0161f024-c739-440d-9498-050280c6c355
+ (do not change this comment) */