Re: Getting/Setting text attributes for a GtkEntry
- From: Brian Cameron <Brian Cameron Sun COM>
- To: Oisin Boydell Sun COM, peter korn Sun COM
- Cc: gnome-accessibility-list gnome org
- Subject: Re: Getting/Setting text attributes for a GtkEntry
- Date: Wed, 30 May 2001 17:32:44 +0100 (BST)
Peter:
> > The GtkEntry object does not support text attributes so the
> > atk_text_ref_run_attributes() function will return NULL (which indicates no
> > attributes set) when called on a GtkEntry.
> > A GtkEntry is editable but since it does not support text attributes a call
to
> > atk_editable_text_set_run_attributes() will return failure.
>
> It is still interesting to know what the attributes are for the entire
GtkEntry
> widget. They will be set at the system level, but there are settings there to
> discover. Why not return some special constants to indicate that the run is
the
> entire widget?
Good point.
The entry doesn't allow bold, italic, colored, etc. text; all the text
will be in the widget's default font and colors which are in
widget->style, except that selected text is in a different color (but
still taken from the style).
So we can do that.
Brian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]