Re: Pixbuf & Text Editable Model Colum in one TreeView Column
- From: Murray Cumming <murrayc murrayc com>
- To: diego goedi net
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Pixbuf & Text Editable Model Colum in one TreeView Column
- Date: Fri, 25 Feb 2005 11:21:39 +0100
On Thu, 2005-02-24 at 23:12 +0100, Diego Fdez. Dur�wrote:
> Please I really need to know if this is posible. My work is stoped until
> I can do it.
>
> Please.
>
> El mi�23-02-2005 a las 20:11 +0100, Diego Fdez. Dur�escribi� > Hello
> >
> > I've a Pixbuf Model Column and a Text Model Column in one TreeView
> > Column, but i need edit the text!
> >
> > Now i do the folowing:
> >
> > ------------------
> >
> > Gtk::TreeView::Column* fileColumn = Gtk::manage( new
> > Gtk::TreeView::Column(_("Nombre de Archivo")) );
> >
> > fileColumn->pack_start(m_Columns.m_col_icon, false); //false = don't
> > expand.
> > fileColumn->pack_start(m_Columns.m_col_name);
> >
> > file_treeView.append_column(*fileColumn);
> >
> > -----------------
> >
> > The code joins the 2 columns in 1 view column, but i can't edit the text
> > of the m_col_name column.
I think you mean that the cellrenderer is not editable.
> I've tryed the code examples from the gtkmm
> > tutorial.
> >
> > How can i get the cell renderer of the m_col_name in the column and then
> > do cell->property_editable() = true; ?
Use get_cell_renderers(), or create the CellRenderer yourself, as the
example shows.
--
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]