Andrea Greselin <greselin.andrea@gmail.com> writes:
> Yes it does! Thank you!
>
> On Sun, 9 Jun 2019 at 16:30, Noam Postavsky <npostavs@gmail.com> wrote:
>>
>> I guess the problem is that tree-widget-image-enable is set just once on
>> load, based on the current display (and the daemon has no display so it
>> doesn't support displaying images). Does it help to explicitly set
>> tree-widget-image-enable to non-nil?
Looks like we could solve this bug just by making
tree-widget-image-enable default to t unconditionally then. It seems to
do the right thing in that case, e.g., I tried
;; from https://stackoverflow.com/questions/25104291/change-text-of-tree-widget-node
(widget-create
'tree-widget :open t :tag "one"
:args
(list (widget-convert
'tree-widget
:tag "two"
:args (mapcar (apply-partially #'widget-convert 'item)
'("three" "four")))))
it shows image when looking at it in a graphic frame, and text when
looking at the same buffer in a tty frame.