Re: Roadmap for the future.

On Fri, 2004-02-20 at 09:48, Erik Bågfors wrote:
> Hi
> Regarding focus or no focus.
> I believe both of the points below will be very hard to do for a
> frontend written as a plugin.  
> For example, I doubt that the xchat python interface gives you
> information about individual widgets inside xchat, I also know that the
> perl-interface to vim doesn't give you that access.  Neither do they
> give you information about when that application is focused.
> I think this means that we may have to patch applications instead of
> writing plugins.

Yes I agree with this. I was thinking through what would be needed to
provide an AbiWord front end to dashboard. We have a nice mechanim for
following focus but in the end it still means adding a few lines of code
to the main codebase to signal focus changes to dashboard.

Also, I guess this point has been raised before but I will ask it
anyway. Why not use DBUS for signalling instead of sending to port


> /Erik
> On Thu, 2004-02-19 at 15:06, Nat Friedman wrote:
> >     I believe that the best way to do this is to add a 'focus_widget'
> >     parameter to the build_cluepacket function.  This would be a
> >     widget the frontned would specify which always has focus whenever
> >     the context corresponding to it is active.
> > 
> >     Then, dashboard-frontend.c can check the widget to see if it has
> >     focus, and can walk up to the top-level application window and see
> >     if it has window manager focus.  If the widget is focused and the
> >     window is focused, then the context is active and
> >     Cluepacket.Focused = true.
> >     This will give us part 1 of the behavior described above.
> > 
> >     To get part 2, we have to also hook up to the i-got-focus events
> >     on the window and the widget, so that when the context gains
> >     focus, we can send a new cluepacket to the dashboard.
> _______________________________________________
> Dashboard-hackers mailing list
> Dashboard-hackers gnome org

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