Gtk2::R...MenuItem(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Gtk2::RadioMenuItem β€” bestie, it's literally just a wrapper for GtkRadioMenuItem πŸ’…

She's a Perl-flavored glow-up of the GTK+ radio menu item, and she's serving.


🌸 HIERARCHY 🌸

okay so the family tree is giving ✨royalty✨ β€” she did NOT come from nowhere:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::Item
                              +----Gtk2::MenuItem
                                   +----Gtk2::CheckMenuItem
                                        +----Gtk2::RadioMenuItem

Look at all those ancestors. Generational talent, no cap 🫢


πŸ¦‹ INTERFACES πŸ¦‹

she also carries these vibes (interfaces, technically):

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::Activatable

πŸ‘‘ METHODS πŸ‘‘

widget = Gtk2::RadioMenuItem->new ($member_or_listref=undef, $label=undef)

the classic constructor, main character energy fr fr:

  • $member_or_listref (scalar) β€” the member or listref, defaults to undef
  • $label (string) β€” the label, defaults to undef

widget = Gtk2::RadioMenuItem->new_from_widget ($group, $label=undef)

  • $group (Gtk2::RadioMenuItem)
  • $label (string)
Since: gtk+ 2.4 ✨

widget = Gtk2::RadioMenuItem->new_with_label ($member_or_listref=undef, $label=undef)

  • $member_or_listref (scalar)
  • $label (string)

widget = Gtk2::RadioMenuItem->new_with_label_from_widget ($group, $label=undef)

  • $group (Gtk2::RadioMenuItem)
  • $label (string)
Since: gtk+ 2.4 ✨

widget = Gtk2::RadioMenuItem->new_with_mnemonic ($member_or_listref=undef, $label=undef)

  • $member_or_listref (scalar)
  • $label (string)

widget = Gtk2::RadioMenuItem->new_with_mnemonic_from_widget ($group, $label=undef)

  • $group (Gtk2::RadioMenuItem)
  • $label (string)
Since: gtk+ 2.4 ✨

arrayref = $radio_menu_item->get_group

ngl this one's a vibe: it hands you back a reference to an array of "Gtk2::RadioMenuItem"s β€” aka the whole group membership, the squad, the friend group πŸ’œ

$radio_menu_item->set_group ($member_or_listref)

  • $member_or_listref (scalar)

πŸŽ€ PROPERTIES πŸŽ€

  • 'group' (Gtk2::RadioMenuItem : default undef : writable / private / static-nick / static-blurb) β€” the radio menu item whose group this widget belongs to. that's it, that's the whole property 🫢

🌈 SIGNALS 🌈

  • group-changed (Gtk2::RadioMenuItem) β€” fires when the group changes, and you will be notified bestie πŸ”₯

⭐ SEE ALSO ⭐

go read these too, iykyk:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem, Gtk2::CheckMenuItem


Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


okay and that's the whole page, no crumbs left 🌸 this lil doc is part of the User Contributed Perl Documentation and it's stamped from perl v5.42.0 on 2025-07-25. mwah, go build something cute πŸ’…βœ¨

πŸ“¦ where this page comes from