Gtk2::Combo(3)
π 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 π
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
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms