Re: [Newbie]: $buffer troubles



Stefano Esposito <yankeegohome email it> writes:

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?

the usual design choice i usually complain about, aka gtk2-perl just
silently ignores exceptions in callbacks




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