Perl/Gtk: user_data field in Gtk::MenuFactory ?



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).

any ideas, how i could realize a single callback-
function for all menu-items without the user_data
field ?

i can the label from the selected item, but
not the whole path...



so long...
Christoph 'hardy' Hartmann
-- 
           hartmann@ai-lab.fh-furtwangen.de (Christoph Hartmann)
          http://www.ai-lab.fh-furtwangen.de/~hartmann/index.html
        FAX: +49 89 6661 724094 (fax2mail via http://www.commit.de)
===========================================================================
          the best way to accelerate a pc-compatible is 9.8 m/s^2



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