The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Gapp::Gtk2::OComboBox - A ComboBox to use with objects

SYNOPSIS

  use Gapp::Gtk2::OComboBox;

  $combo = Gapp::Gtk2::OComboBox->new;

  $model = $combo->get_model;
  
  $model->set($model->append, 0 => $object);

  $combo->set_value($object);

  $object = $combo->get_value;
  

OBJECT HEIRARCHY

  Glib::Object
    +----Gtk2::ComboBox
      +----Gapp::Gtk2::OComboBox

DESCRIPTION

Gapp::Gtk2::OComboBox allows you to display and select objects.

METHODS

$combo->get_iter_from_object( Object )

Returns an $iter pointing to the location of the object in the model. Returns undef if the object is not in the model.

$combo->get_equality_function

Returns the function used to determine if

$combo->get_selected

Returns the currently selected object.

$combo->select( Object | Undef )

Sets the currently selectd objected. You may pass undef for no selection.

$combo->select_or_add( Object )

The object is selected, being added to the model first if necessary.

AUTHOR

Jeffrey Ray Hallock, <jhallock.hallock at gmail dot com>

1;