Re: Custom CellRenderers in IconView
- From: "John Spray" <john c spray googlemail com>
- To: "Murray Cumming" <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: Custom CellRenderers in IconView
- Date: Tue, 8 Apr 2008 13:18:33 +0100
Thanks Murray, that was enough to get me up and running.
John
On Sun, Apr 6, 2008 at 1:22 PM, Murray Cumming <murrayc murrayc com> wrote:
> 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]