[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texmacs-dev] Conditional aligned item in preference widget
From: |
François Poulain |
Subject: |
[Texmacs-dev] Conditional aligned item in preference widget |
Date: |
Fri, 22 Nov 2013 14:56:01 +0100 |
Hi,
I see, in r7200, Miguel asking about putting an (if ... ) in an
(aligned ...) widget. I wanted to do so, thus I seeked about it.
The problem is that the code handling the (aligned ...) (which is
make-aligned in TeXmacs/progs/kernel/gui/menu-widget.scm) suppose to
have (item ...) in his body. I don't know actually how to fix it
(maybe Joris have an idea), but a possible workaround is to put the
(if ...) on the arguments of the item.
Anyway, a remaining problem is that the predicate is not evaluated
in real time, but during the construction of the widget. So, making
conditionals items in a preference widget remain tedious, imho
(because the user will have to open/set option/close/open/set
option/close...).
Joris, do you have an advice or a fix for this purpose?
François
--
François Poulain <address@hidden>
- [Texmacs-dev] Conditional aligned item in preference widget,
François Poulain <=