Re: Gtk2::MenuItem get_label?
- From: Grant McLean <grant mclean net nz>
- To: Martin Junius <mj+gnome ml m-j-s net>
- Cc: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: Gtk2::MenuItem get_label?
- Date: Tue, 22 Feb 2005 11:34:17 +1300
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]