Re: Gtk2::MenuItem get_label?



On Mon, 2005-02-21 at 22:33 +0100, Martin Junius wrote:
how do I retrieve the label from a Gtk2::MenuItem?

The Gtk2::MenuItem is derived from the Gtk::Bin class, so you can
use the ->child method to get the label object out.  Then you can use
the ->get_label method to get the text of the label.

  my $text = $menu_item->child->get_label;

Cheers
Grant




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