App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive -- menu item insensitive when submenu empty
use App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive; my $item = Gtk2::MenuItem->new; App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive->setup ($item);
App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive sets up a Gtk2::MenuItem so that it's insensitive if its submenu is empty, or all the items are hidden, or there's no submenu set at all.
App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive
Gtk2::MenuItem
Sensitivity updates with items added or removed from the submenu, or made hidden or visible. In Gtk 2.12 and the sensitivity is updated for a new submenu, ie. set_submenu, but in prior versions there's no signal when that happens and you must call setup below again.
set_submenu
setup
App::Chart::Gtk2::Ex::MenuItem::EmptyInsensitive->setup ($item)
Setup $item to be insensitive if its submenu is empty.
$item
Gtk2::MenuItem, Gtk2::Menu
To install App::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chart
CPAN shell
perl -MCPAN -e shell install App::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.