Re: Gtk2::TreeView or Gtk2::SimpleList right justify?



Guillaume Cottenceau said:

Gives for example:

    $list_tv->append_column(Gtk2::TreeViewColumn->new_with_attributes(N("Medium"),
my $ct = Gtk2::CellRendererText->new, 'text' => 1));

    $ct->set_property('xalign', 1.0);


this one doesn't translate so easily into SimpleList terms.  basically, you
have to fetch the column from the treeview, then fetch the renderer from the
column, and set the alignment on the renderer.  thus, you get

   ( $slist->get_column ($colno)->get_cell_renderers )[0]->set (xalign => 1.0);

which we might actually want to wrap up for SimpleList.  what do you guys think?

-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]