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 148558 - Add a ::popup-menu signal to GtkTreeViewColumn
Add a ::popup-menu signal to GtkTreeViewColumn
Status: RESOLVED DUPLICATE of bug 141937
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.4.x
Other Linux
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-07-27 10:52 UTC by John Gill
Modified: 2005-07-13 12:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description John Gill 2004-07-27 10:52:11 UTC
I'm using the TreeView and a ListStore to display tables of data.

Users often want to sort on a particular column or filter to see a subset of the
values in a particular column.

The TreeView has excellent support for the former -- I just need to make the
column headers clickable and I pretty much get the sorting for free.

For the latter I'd like to have it so that right-click on a column label will
pop up a simple dialog which allows the user to select which values they want to
see.   (as an aside, kudos for the latest gtk which has support for a filtered
model, very handy for the filtering part).

Unfortunately, there is currently no way to get at any other events that occur
on the column headers.

It would be nice if a right click (or Enter key when the column header has
focus) generated a popup-menu signal, so that application code could provide a menu.
Comment 1 Ken Harris 2004-12-17 09:57:30 UTC
It's possible, but it's not at all easy.  Bug 141937 is about making it easier.
Comment 2 Kristian Rietveld 2005-07-13 12:04:24 UTC

*** This bug has been marked as a duplicate of 141937 ***