Re: [Newbie]: $buffer troubles




On Feb 1, 2005, at 7:48 AM, Thierry Vignaud wrote:

Stefano Esposito <yankeegohome email it> writes:

        $local_buff->get_start_iter($start_iter);
        $local_buff->get_end_iter($end_iter);

while the C syntax is

   gtk_text_buffer_get_start_iter (textbuffer, &start_iter);

the TextIter parameter is actually an *output* parameter. therefore, in the perl bindings, the syntax is

  $start_iter = $textbuffer->get_start_iter;

as evidenced by the message you get:

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

technically, since he got a message it wasn't "silent"...


--
In some newer operating systems, time_t has been widened to 64 bits. In the negative direction, this goes back more than twenty times the age of the universe, and so suffices. In the positive direction, whether this range is sufficient to represent all possible times depends on the ultimate fate of the universe, but it can be expected to postpone overflow long enough for such implementation limits to be abolished.
  -- Wikipedia, on UNIX time.




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