From: Daniel C. <dan...@gm...> - 2006-01-20 21:19:50
|
Joe Van Dyk wrote: > On 1/20/06, Daniel Chokola <dan...@gm...> wrote: > >>Joe Van Dyk wrote: >> >>>Hi, >>> >>>I have a treeview that contains a few columns that contain numbers. >>>I'd like the numbers to be justified against the right side (instead >>>of the default right side). >>> >>>Any idea on how I could do that? >> >>Use the text attribute of Gtk::TreeViewColumn: >>Gtk::TreeViewColumn.new('String', renderer, :text => 1) > > > Doesn't the text attribute specify what position in the model to look > up the value of what goes into the column? > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > I apologize, I copied the line below where I should have in my program. Try this: renderer = Gtk::CellRendererText.new renderer.set_xalign(1) -Dan |