Gnome2::PopupMenu(3)
π Gnome2::PopupMenu π
okay so bestie, say hi to Gnome2::PopupMenu β a whole little Perl module from the Gnome2 era, living its best life as part of the User Contributed Perl Documentation. it's giving popup-menu realness, and the methods are listed right below. no cap, it's all here π
β¨ METHODS β¨
widget = Gnome2::PopupMenu->new ($uiinfo, $accelgroup=undef)β makes you a shiny new popup menu widget. the args:$uiinfo(Gnome2::UIInfo)$accelgroup(Gtk2::AccelGroup)
widget = Gnome2::PopupMenu->new_with_accelgroup ($uiinfo, $accelgroup=undef)β same energy asnew, but it's the accelgroup-forward version. args:$uiinfo(Gnome2::UIInfo)$accelgroup(Gtk2::AccelGroup)
$widget->add_popup_items ($uiinfo, $user_data=undef)β adds the popup items, duh. args:$uiinfo(Gnome2::UIInfo)$user_data(scalar)
$popup->append_from ($uiinfo)β appends stuff from your uiinfo. args:$uiinfo(Gnome2::UIInfo)
$popup->attach_to ($widget, $user_data=undef)β attaches the popup to a widget, like besties linking arms π«Ά. args:$widget(Gtk2::Widget)$user_data(scalar)
$popup->do_popup ($pos_func, $pos_data, $event, $user_data, $for_widget)β the actual pop-up moment. main character energy π₯. args:$pos_func(scalar)$pos_data(scalar)$event(Gtk2::Gdk::Event)$user_data(scalar)$for_widget(Gtk2::Widget)
integer = $popup->do_popup_modal ($pos_func, $pos_data, $event, $user_data, $for_widget)β the modal version, and it hands you back an integer. args:$pos_func(scalar)$pos_data(scalar)$event(Gtk2::Gdk::Event)$user_data(scalar)$for_widget(Gtk2::Widget)
π SEE ALSO π
- Gnome2 β go read it, iykyk π
Β©οΈ COPYRIGHT Β©οΈ
Copyright (C) 2003-2004 by the gtk2-perl team. π
This software is licensed under the LGPL. See Gnome2 for a full notice.
and that's the whole vibe check bestie β¨ this page was served up by perl v5.42.0, dated 2025-07-25, filed under Gnome2::PopupMenu(3). slay, go build something iconic πΈππ¦
π¦ 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