Gnome2::AppHelper
{ type => "item", label => "Quit", callback => sub { exit(0); } }
For the list of valid keys, see below.
type, label, hint, moreinfo, pixmap_type, pixmap_info, accelerator_key and modifiers.
The example from above would become:
[ "item", "Item", undef, sub { exit(0); },
undef, undef, undef, undef ]
To create multi-level structures, you use the ``subtree'' type and the ``subtree'' key, as in the following example:
{
type => "subtree",
label => "Radio Items",
subtree => [
{
type => "radioitems",
moreinfo => [
{
type => "item",
label => "A"
},
{
type => "item",
label => "B"
},
{
type => "item",
label => "C"
},
{
type => "item",
label => "D"
},
{
type => "item",
label => "E"
}
]
}
]
}
Returns the GtkWidget and the position associated with the path.
This software is licensed under the LGPL. See Gnome2 for a full notice.
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |