Thanks for the response. It came down to a simple logic error. In this code:
my $start_iter;
if ( $iter->starts_word ) {
$start_iter = $iter;
} else {
$iter->backward_word_start;
$start_iter = $iter;
}
$iter->forward_word_end;
... I set $start_iter t
Hi Dan,
I am not very good with Perl but it looks like the iters aren't getting moved
forward and backwards on the word the cursor is over. In C, the callback would
look something like
static gboolean query_tooltip(GtkWidget *textview, gint x, gint y, gboolean
keyboard_mode, GtkTooltip *too
Also should note - the detection of whether the pointer is over a word
or not ( $iter->inside_word ) *is* working correctly ... as my app
appears to be returning correctly when I'm pointing at whitespace. It
just prints blank lines when I point at some text.
Dan
On Fri, Feb 17, 2017 at 3:50 PM, D
Hi all.
I'd like to provide help on special text ( tokens in code ) in a
GtkSourceView / GtkTextView. I see my question is basically:
https://mail.gnome.org/archives/gtk-list/2010-May/msg00107.html
... and the important part of the response to this question was:
"Simply set text view's "has-too