[Newbie]: $buffer troubles



Hi all. I'm a newbie at GUI programming so, forgive me if the question has an obvious answer :)

When i try to run something like this

my $view = Gtk2::TextView->new();
...
$menu_new->signal_connect('activate', \&new, $view);
...
sub new {
        my $view = $_[1];
        my $local_buff = $view->get_buffer();
        my $start_iter;
        my $end_iter;
        
        $local_buff->get_start_iter($start_iter);
        $local_buff->get_end_iter($end_iter);
...
}

I obtain this runtime error message:

*** unhandled exception in callback:
***   Usage: get_start_iter(buffer) at ./main.pl line 128.
***  ignoring at ./main.pl line 109.

Can anyone tell me where's my error?
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Personalizza il tuo cellulare con un semplice sms, clicca qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3115&d=20-1



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