Here's a fix to RowColumn.c for a problem with option menus...

(starting around line 1213)

      /* rws take care of setValues on menuHistory */
      /* rws 21 Nov 1998
         rowcolumn/test46 shows that setting menuHistory on the submenu
         sets the item also!!!!
      */
      if (RC_MemWidget(new_w) != RC_MemWidget(old))
      {
          if (RC_Type(new_w) == XmMENU_OPTION)
          {
              _XmOptionCallback(RC_MemWidget(new_w), (XtPointer)new_w,
NULL);
          }
         else if (RC_LastSelectToplevel(new_w) &&
RC_Type(RC_LastSelectToplevel(new_w)) == XmMENU_OPTION)
         {
               RC_MemWidget(RC_LastSelectToplevel(new_w)) =
RC_MemWidget(new_w);
+              /* dwilliss 28-may-04
+               * Not enough to just set mem_widget on RC_LastSelectToplevel
+               * we need to tell it that its changed or the label on the
+               * option menu won't change
+               */
+              _XmOptionCallback(RC_MemWidget(RC_LastSelectToplevel(new_w)),
(XtPointer)RC_LastSelectToplevel(new_w), NULL);
          }
      }



 -- Dave Williss
------
Meddle not in the affairs of dragons,
   for you are crunchy and taste good with catsup

_______________________________________________
Lesstif mailing list
[EMAIL PROTECTED]
https://terror.hungry.com/mailman/listinfo/lesstif

Reply via email to