copy->selected = val->selected;
copy->edited = False;
copy->change = change;
+ copy->this_one_change = change;
copy->contents = copy_widget_value_tree (val->contents, change);
copy->call_data = val->call_data;
copy->next = copy_widget_value_tree (val->next, change);
widget_value* val2;
int level;
{
- change_type change;
+ change_type change, this_one_change;
widget_value* merged_next;
widget_value* merged_contents;
EXPLAIN (val1->name, change, INVISIBLE_CHANGE, "(contents change)",
0, 0);
change = max (change, INVISIBLE_CHANGE);
+#if 0 /* This was replaced by the August 9 1996 change in lwlib-Xm.c. */
+#ifdef USE_MOTIF
+ change = max (merged_contents->change, change);
+#endif
+#endif
}
val1->contents = merged_contents;
}
+ this_one_change = change;
+
merged_next = merge_widget_value (val1->next, val2->next, level);
if (val1->next && !merged_next)
val1->next = merged_next;
+ val1->this_one_change = this_one_change;
val1->change = change;
if (change > NO_CHANGE && val1->toolkit_data)
&& XtWindow (menubar_widget) == win;
#endif
#if defined (USE_MOTIF)
- && XtWindowToWidget (XtDisplay (menubar_widget), win)
- && (XtParent (XtWindowToWidget (XtDisplay (menubar_widget), win))
- == menubar_widget);
+ && ((XtWindow (menubar_widget) == win)
+ || (XtWindowToWidget (XtDisplay (menubar_widget), win)
+ && (XtParent (XtWindowToWidget (XtDisplay (menubar_widget), win))
+ == menubar_widget)));
#endif
}