After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 74096 - GtkCellRendererPixbuf should be activatable.
GtkCellRendererPixbuf should be activatable.
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
1.3.x
Other Linux
: Normal enhancement
: Small API
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2002-03-09 21:07 UTC by Andreas J. Guelzow
Modified: 2013-02-04 06:14 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Andreas J. Guelzow 2002-03-09 21:07:21 UTC
I would be nice if the GtkCellRendererPixbuf  would emit activate or toggle
signals on click. That would permit two (or more) icons to be switched to
indicate states.

Alternatively, the same could be obtained if the CellRendererToggle would
accept specifications of which image to draw rather than the same old checkbox.

An example of use would be a switch between Ascending and descending mared
by an icon rather than a column of checkboxes.
Comment 1 Jonathan Blandford 2002-03-11 21:45:41 UTC
I think I'd rather see a separate cell renderer for this.  It should
be really easy to write.  If you make one, please put it in libegg so
that we can consider it for 2.2/2.4.
Comment 2 Kristian Rietveld 2002-05-02 19:40:49 UTC
Reassigning bugs to new component owner. Sorry for the flood.
Comment 3 Kristian Rietveld 2002-11-18 20:09:50 UTC
I think we should put this feature into the default pixbuf renderer or
close this bug. I don't see the need for a second pixbuf renderer in
gtk+ which only adds handling of mouse clicks.
Comment 4 Andreas J. Guelzow 2002-11-18 21:02:15 UTC
I would concur with putting this into the default pixbuf renderer (or
the toggle renderer) In gnumeric we are currently using a second
toggle renderer to implement that feature but it should be part of one
of the default renderers.
Comment 5 Sven Neumann 2003-03-20 11:23:26 UTC
GIMP-1.3 now has a custom cell renderer for this as well:
 
http://cvs.gnome.org/lxr/source/gimp/app/widgets/gimpcellrenderertoggle.c
http://cvs.gnome.org/lxr/source/gimp/app/widgets/gimpcellrenderertoggle.h

However I don't see a need to move this into GTK+ since most probably
every project wants a slightly different look and feature set anyway.
Comment 6 Kristian Rietveld 2003-11-16 15:10:52 UTC
Moving to future for now.
Comment 7 Claudio Saavedra 2012-05-21 15:46:05 UTC
This is pretty easy to achieve by subclassing the renderer and implementing the activate vfunc. Is the bug really valid?
Comment 8 Andreas J. Guelzow 2012-05-21 16:22:36 UTC
Does it really matter whether the "bug is really valid"? It was filed in 2002...

Subclassing the renderer and implementing the activate vfunc is of course possible, provided the API remains constant.
Comment 9 Claudio Saavedra 2012-05-21 17:43:47 UTC
(In reply to comment #8)
> Does it really matter whether the "bug is really valid"? It was filed in
> 2002...

Since GTK+ doesn't rejoice in keeping bugs open for no purpose, I think it matters.

> Subclassing the renderer and implementing the activate vfunc is of course
> possible, provided the API remains constant.

GTK+ has indeed a stable API ever since.