Re: [g-a-devel] GTK and ATK



On 05/13/2011 04:47 PM, Benjamin Otte wrote:
On Fri, May 13, 2011 at 4:32 PM, Matthias Clasen
<matthias clasen gmail com>  wrote:
I would argue that if all the widgets dealing with text really have
the same needs, they should really support the same interface in GTK+,
and there should be no need to write n adaptors for widget-with-text
to atktext, but instead just one for text-widget-interface to atktext.
And ideally, text-widget-interface and atktext would be so close to
each other that that would be trivial.

Interestingly, there is a lot of use cases where people want to do
stuff with text and an interface supporting it would help them
greatly. Besides AtkText, spell checking, IM contexts and maybe even
searching come to mind. If we could come up with an interface for Gtk
that could satisfy all these needs without getting overly complex,
that would be great.
And as I just added on my last mail, also a way to get the current
word or full sentence around the current cursor.

(Ideally, this interface would have a default implementation that just
maps to a PangoLayout very well, because that is what all text-related
widgets in GTK use.)

And in clutter. One of the more important bugs right now on Cally
is the lack of a equivalent functionality provided by gail-text-util,
so AtkText implementation is missing. This was postponed as most
of current text representation on gnome-shell doesn't require it,
but it needs to be solved eventually.

And sincerely, I would like to avoid to re-implement that on clutter.
So it would be good to have something like a pangolayout based library
providing this functionality, in order to be used on both gail and cally.

BR

--
API



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