Re: About GtkTextBuffer and GtkTextTag



On Thu, 2003-10-09 at 07:21, Harobed wrote:
> User selectes nothing. The insert cursor is at end of buffer, or between
> two chars. User selectes one tag in menu. After that, when user types
> char, the texttag selected will be apply to this char.

Basically you will need to keep track of the text attributes the user
has selected that haven't yet been applied to any text, and apply the
attributes when they start typing. You can g_signal_connect_after() to
insert_text perhaps to catch text just after it's added.

Havoc




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