in reply to how to call gtk3::vte::grab_text_range

hi

nice bit from Ai gtk3 vte grab_text_range (ai is easily confused , and is correcting itself as im composing)

In VTE 2.91+ (used in GTK 3), the function for retrieving text is vte_terminal_get_text(), not grab_text_range. grab_text_range was a function in older versions of VTE (GTK 2) that has since been removed.

anyway, have you tried using perli11ndoc to see what it says ?

so you had

$$self{_GUI}{_VTE}->get_text_range(1, 0, 1, 5, $func, my $data = undef +);
but id think youd want
my $data = []; $$self{_GUI}{_VTE}->get_text_range(1, 0, 1, 5, $func, $data );

 

boop

Perl Gtk3 Tutorial / https://github.com/kevinphilp/Perl-gtk3-Tutorial/tree/master

site:perlmonks.org zentara gtk3 terminal