Re: Migrating to gtkmm 2.4, cellrenderer problems
- From: Murray Cumming <murrayc murrayc com>
- To: Leandro Fanzone <leandro hasar com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Migrating to gtkmm 2.4, cellrenderer problems
- Date: Fri, 04 Mar 2005 18:19:17 +0100
On Fri, 2005-03-04 at 14:01 -0300, Leandro Fanzone wrote:
> I am migrating code from gtkmm 2.0 to gtkmm 2.4, and I have some custom
> cellrenderer code that I copied from someone of this list without
> understanding quite completely the inner working of it. It's a
> cellrenderer to show a fixed point number in a TreeView.
append_numerical() might do what you want more easily.
> I managed to
> understand that generate_cellrenderer was moved from
> TreeViewColumn_CellRendererGeneration to CellRenderer_Generation, but
> the last line from this following code still puzzles me:
>
> unsigned n = TreeView.append_column("Precio", RendererPrecio); //
> RendererPrecio => custom cellrenderer for fixed point numbers, based on
> CellRendererText
> Gtk::TreeViewColumn *pColumn = TreeView.get_column(n-1);
> pColumn->add_attribute(RendererPrecio.property_amount(), cols.Precio);
> RendererPrecio.property_editable() = true;
> RendererPrecio.signal_edited().connect(SigC::bind(SigC::slot(TreeView,
>
> &Gtk::TreeView::_auto_store_on_cellrenderer_text_edited_numerical<Util::Amount>),
> cols.Precio.index()) );
You should not be using this in your own code. Methods that start with _
are private and will change whenever we like.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]