Re: Gtk::ListStore - precision(2)



On Thu, 2010-07-22 at 02:30 -0700, SigSev wrote:
> I'am asking you how can I change float (or double) precision in
> Gtk::ListStore?
> 
> I don't want four zeros in the end.
> 
> http://img340.imageshack.us/img340/3993/zrzutekranuln.png

If you are using the TreeView::append_column() convenience method then
you might want to use TreeView::append_column_numeric() to specify a
printf-style format:
http://library.gnome.org/devel/gtkmm/stable/classGtk_1_1TreeView.html#ae6fc0051cc178bfacea2dec27c2d5a58

If you need more control then see:
http://library.gnome.org/devel/gtkmm-tutorial/stable/sec-treeview.html.en#treeview-cellrenderer-details

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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