Re: GtkCellRendererPixbuf and signals
- From: Andrej Prsa <andrej prsa guest arnes si>
- To: GTK Mailing list <gtk-list gnome org>
- Cc: "Serge S. Fukanchik" <fuxx mail ru>
- Subject: Re: GtkCellRendererPixbuf and signals
- Date: Thu, 24 Jul 2003 15:51:43 +0200
Hello!
> > Could anyone please give me a hint on how to attach a "clicked" signal
> > to the pixbuf that is in the GtkTreeView? GtkCellRendererPixbuf
> > doesn't have any signals?
> You should set property mode of parent class GtkCellRenderer to
> GTK_CELL_RENDERER_MODE_ACTIVATABLE, then use `activate' method from
> GtkCellRendererClass's vtable. I suggest you should create subclass of
> GtkCellRendererPixbuf with your own settings.
I managed to set the GTK_CELL_RENDERER_MODE_ACTIVATABLE switch to the
renderer, but I don't know how to work with vtables; I checked the header
file and in fact there is the "activate" method; could you please
demonstrate how to use it?
Thanks,
Andrej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]