Re: gtk_text_get_point



On Mon, 2005-05-23 at 16:03 +0200, Jean Chapelle wrote:
> Hi everybody,
> 
> I am using a gtk_text_new component and want to know my position in the
>  gtk_text. I am using the gtk_text_get_point function but it seems to
>  dont return me the correct value. In fact, for example, when I go to
>  the begining of the text, the function return me position=0, so ok.
>  But if push the right arrow key one time, the position return by the
>  function is again 0. If I push a second time the position=0. If I push
>  a third time position=1. The lenght of the text returns by the
>  gtk_text_get_lenght function is not correct too
> 
> Can you tell me why???

You are using GtkText. Don't.

The most likely reason that you are using GtkText not GtkTextView is
that you are using GTK+-1.2. Don't do that either: it's been over
3 years since GTK+-2.x was release as stable, and over 4 years since
the last release of GTK+-1.2.

Regards,

							Owen

Attachment: signature.asc
Description: This is a digitally signed message part



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