Re: Getting submenu from a MenuItem



On Monday 28 January 2002 11:50 pm, you wrote:

get_submenu() is a function of the 2.0 API (which is not, afaik,
implemented in Perl yet).

Ahhhh ok thanks.

Without seeing your code, or exactly what you need to do, I can only
suggest that it might be easier to keep track of this yourself.
If you create a menu structure in a hash, it should be fairly trivial to
keep track of the heirarchy.  Though somebody else may have a much
better solution ;)

Well that was what I was hoping to do, but I want to also include seperators 
in a Gtk::Menu, which as far as I could see, can only be done using 
Gtk::itemfactory, which I think I might be wrong on, which I'm sure someone 
will point out to me. But when using Gtk::itemfactory I also can't find a 
method of getting the references to Gtk::MenuItems, so I'm sorta stuck really.

Toby



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