[gedit-list] getting cursor position
- From: Frederic Back <fredericback gmail com>
- To: gedit-list gnome org
- Subject: [gedit-list] getting cursor position
- Date: Wed, 18 Oct 2006 10:05:14 +0200
Hello,
I started hacking on the class browser plugin again, and I am currently
stuck with the following problem:
I would like to highlight the class the cursor is currently positioned
at in the class browser. I tried to get the current cursor position by
connecting to the view's "cursor-changed" signal, but it seems that it
is emitted only when I move the cursor with the keyboard and not with
the mouse.
Does somebody know how to reliably get the cursor position without
polling the buffer? And if not, do you think that setting a timeout to
get the current position is legitimate in this case?
Thanks!
Fred
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]