Re: How to get the row & column number of cursor in GtkTextView?
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: gtk-list gnome org, milimeter 163 com
- Subject: Re: How to get the row & column number of cursor in GtkTextView?
- Date: Fri, 23 Aug 2002 16:58:00 +0100 (BST)
I have not tried it but something along these lines ought to work.
Padraig
GtkTextIter *cursor_itr;
GtkTextBuffer *buffer;
GdkRectangle rect;
buffer = gtk_text_view_get_buffer (text_view);
cursor_iter = gtk_text_buffer_get_iter_at_mark (buffer,
gtk_text_buffer_get_insert (buffer));
gtk_text_view_get_iter_location (text_view, cursor_iter, &rect);
>
> Hello, Everybody
>
> Can anybody tell me that how I can get the row & column number of cursor in
> GtkTextView? I didn't find any function call to implement this.
>
> Thank you very much!!!
>
> Yours,
> mili
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]