RE: About GtkTextBuffer and GtkTextTag

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

 



Le jeu 09/10/2003 à 15:06, Harobed a écrit :
> Le jeu 09/10/2003 à 13:48, martyn.2.russell@xxxxxx 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 text selected.
> > > 
> > > Now, I would like do that :
> > > 
> > > 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.
> > 
> > I would suggest starting by looking at the "changed" or "insert-text"
> > signal for the GtkTextBuffer.
> > 
> > When you get called back, you can then set the tag.  
> When I get called back, I can't set tag because I haven't got iter start
> and end of text insered because it does after the called back.

Sorry for the previous mail, it's manipulate error.

Information :

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.


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux