Am 16.01.2014 um 14:37 schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>:

> 16/01/2014 13:23, Stephan Witt:
>> The dispatch and getstatus calls are made for application first and the for 
>> the view.
>> The platform doesn't matter here.
>> It's different for a Mac to have a menu bar without any view.
>> But you're right if you meant to say it works on any platform.
> 
> I thought that the GuiApplication part came last (which would make more sense 
> IMO).

I had to verify that myself. :) But, it's like that.

The central dispatch calls theApp()->dispatch(action) where the switch 
statement waits
to do it's work. The default: of the GuiApplication::dispatch passes it to the 
current
GuiView::dispatch if there is one.

>> I'll attach another patch
>> * without #ifdef
>> * with dummy view to do the dispatch
>> 
>> This works better, but affects the code more.
> 
> Affecting more code is not a problem IMO. Does the createView() flash a 
> window on the screen?

Yes, but it doesn't flash, it remains open. After all, it's a work around. :(
The proper solution requires the handling of e.g. Preferences in GuiApplication.

Stephan

Reply via email to