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



On Fri, 2003-08-08 at 09:51, Guillaume Cottenceau wrote:
Yes.. /me should better read doc: "Sets the alignment of the
title"..

I suck. Now, 

No, you rock.  I had no idea where to look to make this work...


http://developer.gnome.org/doc/API/2.0/gtk/GtkCellRenderer.html#GtkCellRenderer--xalign

should do the trick. tested, this time.

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);

Works awesome!  After setting up my SimpleList, I just do this for each
column I want right justified:

$slist->get_column(8)->set_alignment (1.0);
$slist->get_column(8)->get_cell_renderers()->set_property('xalign',1.0);

I feel like I have three people writing this program and only one of
them is going to get the credit/praise when it's done.  :-)

Thanks guys!!



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