CORBA-MICO
view release on metacpan or search on metacpan
my $selection = $ctree->get_selection;
$selection->set_mode ('browse');
my $cell = Gtk2::CellRendererText->new;
my $column = Gtk2::TreeViewColumn->new_with_attributes('',
$cell, 'text' => TREE_TITLE_COLUMN);
$ctree->append_column($column);
# disable incremental search
$ctree->set_enable_search(0);
# search by regexp
$ctree->set_search_equal_func(\&CORBA::MICO::Misc::ctree_std_search, $self);
# and use popup search via CTRL_F/CTRL_R
#$ctree->signal_connect(
# key_press_event => \&CORBA::MICO::Misc::ctree_kpress, $self);
$scrolled->add($ctree);
# Create text window for IDL-representation of selected items
my $hptext = CORBA::MICO::Hypertext::hypertext_create(1);
$paned->add2($hptext);
$paned->set_position(200);
my $ctree = Gtk2::TreeView->new;
$ctree->set_model($model);
my $selection = $ctree->get_selection;
$selection->set_mode ('browse');
my $cell = Gtk2::CellRendererText->new;
my $column = Gtk2::TreeViewColumn->new_with_attributes('',
$cell, 'text' => TREE_TITLE_COLUMN);
$ctree->append_column($column);
# disable incremental search
$ctree->set_enable_search(0);
# and use popup search via CTRL_F/CTRL_R
$ctree->signal_connect(
key_press_event => \&CORBA::MICO::Misc::ctree_kpress, $self);
# search by regexp
$ctree->set_search_equal_func(\&CORBA::MICO::Misc::ctree_std_search, $self);
$scrolled->add($ctree);
# Paned window: hypertext on the top, IOR on the left
my $paned1 = new Gtk2::VPaned;
$paned->add2($paned1);
( run in 2.207 seconds using v1.01-cache-2.11-cpan-364913b4093 )