Gtk2::Combo(3)

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

πŸ’– Gtk2::Combo β€” the wrapper for GtkCombo πŸ’–

okay bestie, sit down, grab a boba, because we're talking about Gtk2::Combo, which is literally just a lil Perl wrapper for GtkCombo. and before you get attached β€” no. don't. she's deprecated. more on that in a sec. πŸ™ˆ

This is part of the User Contributed Perl Documentation, iykyk. πŸŽ€


🌸 HIERARCHY 🌸

the family tree, and yes she comes from a long line of icons:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Box
                         +----Gtk2::HBox
                              +----Gtk2::Combo

the way that lineage goes all the way back to Glib::Object… generational wealth fr fr πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

she also implements these, because she's multifaceted:

Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable

πŸ’€ DEPRECATION WARNING πŸ’€

okay so this is the part where I hold your hand.

Gtk2::Combo has been marked as deprecated, and it should not be used in newly written code. that's not me being dramatic, that's the manpage being dramatic. periodt.

if you're writing something new, you want Gtk2::ComboBox instead of Gtk2::Combo. no cap. don't fight it. 🫢

bestie this is a "we don't do that anymore" situation. the combo girlies have moved on. it's giving legacy code. 😭

✨ METHODS ✨

here's everything she can do, and yes we're listing all of them because we don't skip:

  • widget = Gtk2::Combo->new β€” makes a fresh new Combo widget. iconic constructor behavior. πŸ’…
  • $combo->set_case_sensitive ($val) β€” sets whether stuff is case sensitive.
    • $val (boolean)
  • $combo->disable_activate β€” disables the activate. that's it, that's the method. 🌈
  • widget = $combo->entry β€” hands you the entry widget. πŸ“
  • $combo->set_item_string ($item, $item_value) β€” sets the string for an item.
    • $item (Gtk2::Item)
    • $item_value (string)
  • widget = $combo->list β€” hands you the list widget. ⭐
  • $combo->set_popdown_strings (...) β€” sets the popdown strings.
    • ... (list) of strings
  • $combo->set_use_arrows_always ($val) β€” sets whether arrows are always used.
    • $val (boolean)
  • $combo->set_use_arrows ($val) β€” sets whether arrows are used.
    • $val (boolean)
  • $combo->set_value_in_list ($val, $ok_if_empty) β€” sets value-in-list behavior.
    • $val (boolean)
    • $ok_if_empty (boolean)

πŸ‘‘ PROPERTIES πŸ‘‘

the full property list, and I mean full β€” every flag, every default, nothing left out:

  • 'allow-empty' (boolean : default true : readable / writable / private / static-nick / static-blurb)
    • Whether an empty value may be entered in this field
  • 'case-sensitive' (boolean : default false : readable / writable / private / static-nick / static-blurb)
    • Whether list item matching is case sensitive
  • 'enable-arrow-keys' (boolean : default true : readable / writable / private / static-nick / static-blurb)
    • Whether the arrow keys move through the list of items
  • 'enable-arrows-always' (boolean : default true : readable / writable / private / static-nick / static-blurb)
    • Obsolete property, ignored
  • 'value-in-list' (boolean : default false : readable / writable / private / static-nick / static-blurb)
    • Whether entered values must already be present in the list
not me noticing 'enable-arrows-always' is literally obsolete and ignored. she's still on the list though. we respect our elders. πŸ™ˆ

🌈 SEE ALSO 🌈

go read these next, bestie, they're all connected:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box, Gtk2::HBox


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

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


and that's the whole page, babe πŸ’œ this was perl v5.42.0, dated 2025-07-25, and it's the Gtk2::Combo(3) page from User Contributed Perl Documentation. stay deprecated, stay cute, and go use Gtk2::ComboBox like a responsible main character. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from