GtkTextBuffer:Compare text with those from GtkEntry

2004-06-26 Thread xiangbing
Hi, I try to write a program to test typing speed.I decide to use a GtkEntry wiget to get the input .The text in GtkTextBuffer is presetted and is shown in a GtkTextView wiget.If user's input is the same to the text in GtkTextBuffer,those text will be underlined. My trouble is I don't know how

Re: GtkTextBuffer:Compare text with those from GtkEntry

2004-06-26 Thread Jan-Marek Glogowski
Hi xiangbing I'm not sure what your problem is. UTF-8 is the encoding, so you don't need to "look" for it - str(n)cmp should be sufficient to compare them (that's why it's called Unicode ;-). If you want to convert text from / to "any encoding" <--> UTF-8 you have store the previous encoding. I

Re: GtkTextBuffer:Compare text with those from GtkEntry

2004-07-04 Thread Jean Bréfort
Le sam 26/06/2004 Ã 12:09, xiangbing a Ãcrit : > Hi, > I try to write a program to test typing speed.I decide to use a GtkEntry wiget to > get the input .The text in GtkTextBuffer is presetted and is shown in a GtkTextView > wiget.If user's input is the same to the text in GtkTextBuffer,those tex