]> code.delx.au - gnu-emacs/blobdiff - oldXMenu/AddSel.c
* nxml-mode.texi (Limitations): Remove obsolete discussion (Bug#6708).
[gnu-emacs] / oldXMenu / AddSel.c
index cfb0b3dbcf0c200fa6036c8e4d3bd625c8b7e0af..e38b3404b569cf5392a148116643007e0b496182 100644 (file)
@@ -1,7 +1,7 @@
+/* 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. */
@@ -31,7 +32,7 @@ XMenuAddSelection(display, menu, p_num, data, label, active)
 
     int label_length;          /* Label lenght in characters. */
     int label_width;           /* Label width in pixels. */
-    
+
     /*
      * Check for NULL pointers!
      */
@@ -58,7 +59,7 @@ XMenuAddSelection(display, menu, p_num, data, label, active)
      */
     label_length = strlen(label);
     label_width = XTextWidth(menu->s_fnt_info, label, label_length);
-    
+
     /*
      * Fill the XMSelect structure.
      */
@@ -79,7 +80,8 @@ XMenuAddSelection(display, menu, p_num, data, label, active)
     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.
      */
@@ -101,3 +103,6 @@ XMenuAddSelection(display, menu, p_num, data, label, active)
     _XMErrorCode = XME_NO_ERROR;
     return((pane->s_count - 1));
 }
+
+/* arch-tag: 0161f024-c739-440d-9498-050280c6c355
+   (do not change this comment) */