Re: Gtk2::TreeView or Gtk2::SimpleList right justify?
- From: Guillaume Cottenceau <gc mandrakesoft com>
- To: Tom Cross <tomc kendeco com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gtk2::TreeView or Gtk2::SimpleList right justify?
- Date: 08 Aug 2003 16:51:15 +0200
Tom Cross <tomc kendeco com> writes:
[...]
Hmm... That makes the column header right justify, but not the actual
column info... :-( It still left justifies if I have it as a 'int'
column or a 'text' column. Do I need to make my own textrender thingy?
Yes.. /me should better read doc: "Sets the alignment of the
title"..
I suck. Now,
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);
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]