Re: Getting/Setting text attributes for a GtkEntry



Hi:

After thinking more about this my preference would be for adding a
method that gets the "default" attributes for text, and leaving the
current attribute API to handle only the overridden attribute values.  

Any client that wants to know the "complete" attributes of a text span
would then be responsible for compositing the "default" style with any
explicit attribute runs over the text span.

If this seems too burdensome then a separate method which does this
(returns the "composite" default+specified attributes) could be
provided in addition to get_attribute_run_set() (or
get_run_attribute_set() if you prefer - both names have the
disadvantage of including the words "set" and "run" which can be verbs
as well as the nouns which they are intended to be in this context).

There was some discussion awhile ago about the usefulness of returning
a set of "available" attribute keys, I think this
(get_all_attribute_keys()) would be a useful addition also, though
perhaps it should only be on AtkEditableText.  The idea is that a
given widget/toolkit would export the keyvalues which it recognises,
so that the client would know what values it could expect were
settable via the "atk_text_set_attributes" method.

-Bill

-- 
--------------
Bill Haneman
Gnome Accessibility / Batik SVG Toolkit
Sun Microsystems Ireland




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