Hello,

I am confused about your use of $data=undef in the Glib documentation, as
in:
unsigned = $instance->*signal_connect* ($detailed_signal, $callback,
$data=undef)

   -

   $detailed_signal (string)
   -

   $callback (subroutine)
   -

   $data (scalar) arbitrary data to be passed to each invocation of *
   callback*

Does this simply mean that undef (NULL) is the default value of the $data
parameter, or does it mean that passing unique user_data to a callback is
not yet supported in this API?

I am trying to figure out a way to employ a common callback function for an
"unlimited" number of menu items (determined at run-time) by passing unique
user_data for each signal.

This does not seem to be supported by the $builder->connect_signals method,
which can only pass the same user_data to a group of unique callback
functions.

Thanks in advance,

beartham



-- 
Joseph 'Bear' Thames
Meta Science Foundation
(505) 977-9024 - Cell Phone
beart...@gmail.com
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to