Re: Custom CellRenderers in IconView
- From: Murray Cumming <murrayc murrayc com>
- To: john c spray gmail com
- Cc: gtkmm-list gnome org
- Subject: Re: Custom CellRenderers in IconView
- Date: Sun, 06 Apr 2008 14:22:11 +0200
On Sat, 2008-04-05 at 22:45 +0100, John Spray wrote:
> Hi,
>
> In GTK+, GtkIconView implements the GtkCellLayout interface,
Yes, they made GtkIconView implement GtkCellLayout at some point. We
couldn't make Gtk::IconView derive from Gtk::CellLayout without breaking
ABI.
> thereby
> allowing addition of arbitrary cellrenderers. Gtk::IconView does not
> appear to do the same. Is it possible to use a custom CellRenderer in
> an IconView?
It should be possible by using the C API, using gobj() and wrap(). You
can treat a Gtk::IconView as a GtkCellLayout, for instance, by doing:
GtkCellLayout* cell_layout = GTK_CELL_LAYOUT(iconview.gobj());
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]