I would make a custom cellrenderer that, given the column data, and for render_vfunc() simply decides what type of row it is going to be and returns whatever render() returns from an internal cellrenderer that does the right thing for the row.
I have an example for subclassing CellRenderer here [1]. Just take what it does and instead of adding the two cellrenderers together, just choose one based on the property. On Tue, Nov 20, 2012 at 3:26 AM, Gitanshu Mehndiratta <[email protected]>wrote: > > > ---------- Forwarded message ---------- > From: Gitanshu Mehndiratta <[email protected]> > Date: Tue, Nov 20, 2012 at 12:02 PM > Subject: Re: Adding Diffrent Gtk::CellRenderer in different rows of same > column in Gtk::TreeView > To: [email protected] > > > Any body has any clue. i have attached screenshots of a application which > does the same. > > Any help will be appreciated. > > Thanks, > Gitanshu > > > > On Mon, Nov 19, 2012 at 5:09 PM, Gitanshu Mehndiratta < > [email protected]> wrote: > >> Dear All, >> >> >> I want to add different widgets (combo,Text,spin button,checkbox) in >> different rows of same column for Gtk::TreeView. >> >> I know how to add one widget in a column for all rows of a Gtk::TreeView >> but how to do the above case. >> >> Thanks, >> Gitanshu >> > > > > _______________________________________________ > gtkmm-list mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/gtkmm-list > >
_______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list
