Re: About GtkTextBuffer and GtkTextTag



Le jeu 09/10/2003 à 20:53, Havoc Pennington a écrit :
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.
Good solution, it works

Thanks




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