Re: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread Havoc Pennington
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

RE: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread martyn.2.russell
> The "insert-text" signal : > > void user_function(GtkTextBuffer * textbuffer, GtkTextIter > *arg1, gchar *arg2, gint arg3, gpointer user_data) > > the arg1 is iter of next char, not the char insered. > Ok, so why can't you get the GtkTextIter, copy it, and with the copy use gtk_text_iter_ba

RE: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread martyn.2.russell
> Given that my previous post generated zero reply, I'm going > to try best > reformulate my queston. > > The goal is to do basic "notepad". Its features will be bold, italic, > undeline > > Actualy, user can apply texttag to text selected. > > Now, I would like do that : > > User selectes not

RE: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread Harobed
Le jeu 09/10/2003 à 15:06, Harobed a écrit : > Le jeu 09/10/2003 à 13:48, [EMAIL PROTECTED] a écrit : > > > Given that my previous post generated zero reply, I'm going > > > to try best > > > reformulate my queston. > > > > > > The goal is to do basic "notepad". Its features will be bold, italic,

RE: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread Harobed
Le jeu 09/10/2003 à 15:06, Harobed a écrit : > Le jeu 09/10/2003 à 13:48, [EMAIL PROTECTED] a écrit : > > > Given that my previous post generated zero reply, I'm going > > > to try best > > > reformulate my queston. > > > > > > The goal is to do basic "notepad". Its features will be bold, italic,

RE: About GtkTextBuffer and GtkTextTag

2003-10-09 Thread Harobed
Le jeu 09/10/2003 à 13:48, [EMAIL PROTECTED] a écrit : > > Given that my previous post generated zero reply, I'm going > > to try best > > reformulate my queston. > > > > The goal is to do basic "notepad". Its features will be bold, italic, > > undeline > > > > Actualy, user can apply texttag to