[Evolution-hackers] Re: Evolution cannot be opened in a different display



Hi Antonio,

On Mon, 2003-07-28 at 11:10, Antonio Xu wrote: 
> Here have bug #21098 in bugzilla, which is about evolution cannot be 
> opened in a different display, I has been filed for a long time, but it 
> is still alive, I want to know, when this bug can be fixed in CVS head. 
> Di d you think it is very hard to solve this issue? I think evolution 
> should judge the display id before create the second shell view, if the 
> display id isn't same as the first shell view's, Evolution should start 
> a new instance.

Evolution assumes that there is only one instance of the app running at
every given time.  I think that's a reasonable assumption, that makes a
lot of things simpler.

On the other hand, what we could do is use GTK 2.2's multihead support
so that when you launch "evolution" from a different display it creates
a new Evolution window in that display, instead of the one that the
first instance was launched in.

I don't know much about how the multihead support works, but that would
probably imply:

      * A change to the Evolution-Shell.idl so that we have a
        createNewViewOnDisplay() method to create a new window in a
        specific display.

      * Some new code in EShell and EShellView to be able to create a
        window in any given display.

      * Changing main.c so that when it finds a running shell it makes
        it create a new window based on the value of DISPLAY in the new
        "evolution" process instead of the existing one.

This would fix the problem, while keeping the basic assumption that
there is only one Evolution process per user at any given time.

-- Ettore



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]