Re: Problems with Gtk::Text and set_pointer and Text widget questions
- From: Michel Blanc <mblanc erasme org>
- To: Pavel Rousnak <pr rpb ru>
- Cc: Mikko Lipasti <mikko lipsti mo mailnet fi>, gtk-perl-list gnome org
- Subject: Re: Problems with Gtk::Text and set_pointer and Text widget questions
- Date: Tue, 14 Aug 2001 11:39:14 +0200
Pavel Rousnak a écrit :
Gtk expects a valid return value from an event handlers.
Try something like the following:
sub button_press {
my ($widget, $event) = @_;
my $len = $widget->get_length()-1;
$widget->set_point($len);
1;
}
It works !
Just need to make 'set_point' do it's job now.
Thanks !
Michel.
--
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]