Re: Return values from gtk2 widget (void) methods



Dermot Musgrove <dermot glade perl connectfree co uk> writes:

I guess that if it is impossible to tell whether a function has failed
or not, there is no easy way to be selective - I don't understand how
gtk2 C programs (especially custom widgets) work if there is no error
available to check but hey there is a lot I don't understand :)

I think that they can check for the constructors return value (is
it a NULL pointer?) and then, each function is supposed to never
fail.
 
Perl's eval() seems able to get and return errors (in $@) so I assumed
that it would be possible in Gtk2-Perl too but if this is not the
case then I suppose that we'll have to go with returning whatever
the gtk2 function returns.

I don't see what's your idea with eval.

-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/



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