Re: Adding Diffrent Gtk::CellRenderer in different rows of same column in Gtk::TreeView
- From: Andrew Potter <agpotter gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Adding Diffrent Gtk::CellRenderer in different rows of same column in Gtk::TreeView
- Date: Tue, 20 Nov 2012 10:03:38 -0800
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]