Problems with Gtk::Text and set_pointer and Text widget questions

Dear All,

I have a problem with the Text widget. When I try to use set_point(), I
always get : 

"Use of uninitialized value in subroutine entry at line 143"

I use the demo Text widget example, and just add the following :

$text->signal_connect ("button_press_event" => \&button_press); 


sub button_press {
        my ($widget, $event) = @_;
        my $len = $text->get_length()-1;
#       $text->set_point($len);
#       $text->set_point($text->get_point());
#       $text->set_point(3);

All the three commented out lines produce the same error. I have Gtk
0.7005  here.

Any clue anyone ??

Also, is there anyway to navigate the widget using, for instance
something similar to Tk indices (linestart, end, @x,y  etc...) ? 


Michel Blanc
Centre Multimédia Erasme/Parc d'activités innovantes
69930 Saint Clément-les-places
Tel : +33-(0)4-74-70-68-40 / Fax : +33-(0)4-74-70-68-40

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