On Freitag, 11. Juli 2008, Lukas Ocilka wrote:
Today I was debugging how to show icons in Report module because I remembered seeing them while calling, e.g., Report::Error() functions in the past.
Then I found that *UI::GetDisplayInfo* doesn't return *HasLocalImageSupport* key and some modules rely on that information
That was another capability. This was the ability to use an image file name
(i.e. a local file - local meaning on the machine the UI runs on, which might
have been another machine than the WFM machine or the installation target
machine) rather than using SCR::Read() on a file into a YCP "byteblock" and
using that byteblock for an YImage widget.
That byteblock technique is now history. The YImage widget now always uses an
image file name. So that UI capability doesn't make sense at all any more.
What those modules did want to query was whether or not the UI can display
images at all. That's "HasImageSupport". But it's not very useful, nor ist it
necessary: UIs that cannot handle images will simply not display one, i.e.,
the YImage widget doesn't display anything - without any complaint.
CU
--
Stefan Hundhammer