Re: [gtk-list] Re: Perl/Gtk: user_data field in Gtk::MenuFactory ?



On Thu, 18 Jun 1998, Kenneth Albanowski wrote:

> On Wed, 17 Jun 1998, Christoph Hartmann wrote:
> 
> > hi,
> > 
> > 
> > i have a small problem with Gtk::MenuFactory.
> > i apply the user_data field in the hash
> > for Gtk::MenuFactory->add_entries(), but
> > i did not get the stored information in the 
> > callback-function (as second parameter).

Oops, I surprise even myself: just pass an array reference as the
callback, with the first value being the subroutine name. All additional
arguments will be passed to the handler.

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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