Re: GtkCellRendererPixbuf and signals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux