Gnome2::AppHelper(3)
π Gnome2::AppHelper π
okay bestie, so this is the manual page for Gnome2::AppHelper β a lil' Perl module in the Gnome2 fam that's here to help you build GUIs without losing your entire mind. it lives in the User Contributed Perl Documentation section of your man pages, iykyk. let's get into it π«Ά
πΈ GnomeUIInfo πΈ
so in Gnome2, GnomeUIInfos are literally the go-to convenient way to create GUIs. and in Perl? a GnomeUIInfo is always a reference to an array of items. those items can be either references to hashes or references to arrays β your call, bestie β¨
π Hash Reference
when you're using hash references, items get specified by giving key-value pairs. a typical example, no cap:
{ type => "item", label => "Quit", callback => sub { exit(0); } }
for the full list of valid keys, scroll down below π
π¦ Array References
when you're using array references, items are a list of the following keys, in this exact order:
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 ]
π Multi-Level Structures
to create multi-level structures, you use the "subtree" type and the "subtree" key, like 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"
}
]
}
]
}
β¨ METHODS β¨
π Gnome2->accelerators_sync
that's it, that's the method. she syncs your accelerators. iconic.
π $menu_shell->fill_menu ($uiinfo, $accel_group, $uline_accels, $pos)
the args, bestie:
$uiinfo(Gnome2::UIInfo)$accel_group(Gtk2::AccelGroup)$uline_accels(boolean)$pos(integer)
π $toolbar->fill_toolbar ($uiinfo, $accel_group)
the args here:
$uiinfo(Gnome2::UIInfo)$accel_group(Gtk2::AccelGroup)
π list = $parent->find_menu_pos ($path)
$path(string)
returns the GtkWidget and the position associated with the path. cute, right?
π§ $bar->install_menu_hints ($uiinfo)
$uiinfo(Gnome2::UIInfo)
π SEE ALSO π
- Gnome2
π COPYRIGHT π
Copyright (C) 2003-2004 by the gtk2-perl team.
this software is licensed under the LGPL. see Gnome2 for a full notice.
okay that's the whole page, bestie, you ate that π«Άβ¨ this was perl v5.42.0, dated 2025-07-25, and it's the Gnome2::AppHelper(3) page β go forth and build slay GUIs, periodt π
π
π¦ where this page comes from
- fedora 43: perl-Gnome2 1.048-18.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms