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 303717 - GtkComboBox menu items: tooltips support?
GtkComboBox menu items: tooltips support?
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
2.6.x
Other Linux
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
: 380586 634594 (view as bug list)
Depends on: 80980
Blocks:
 
 
Reported: 2005-05-10 20:12 UTC by Darren Salt
Modified: 2017-03-03 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Darren Salt 2005-05-10 20:12:51 UTC
Distribution/Version: Debian sarge

GtkOptionMenu menu items may have tooltips, but GtkComboBox menu items can't.

The option menus in gxine's plugin chain configuration windows have tooltips for
their menu items; they provide plugin descriptions (this requires xine-lib 1.0.1).
I can't (easily) start using GtkComboBox here without throwing away these
tooltips...
Comment 1 Matthias Clasen 2005-06-09 20:37:55 UTC
Supporting tooltips on combobox items depends on support for tooltips in tree
view (think list-mode).
Comment 2 Jeffrey Ratcliffe 2007-03-24 13:39:44 UTC
*** Bug 380586 has been marked as a duplicate of this bug. ***
Comment 3 Jeffrey Ratcliffe 2007-10-29 14:13:07 UTC
Fixed in gtk+ 2.12.0
Comment 4 John Stebbins 2009-01-15 19:15:02 UTC
(In reply to comment #3)
> Fixed in gtk+ 2.12.0
> 

I must be dense.  I'm looking at the latest source for gtkcombobox and don't see any method for adding a tooltip per item in the list.  The treeview is private and there is no method for setting the tooltip column of the combo boxes treeview.
Comment 5 Geert Janssens 2012-08-01 11:11:10 UTC
Same question as John. Can someone point to an example to do this since 2.12 ?

I didn't find one in the gtk documentation, nor on the web.

So how can a tooltip be associated with the individual combobox items ?
Comment 6 Geert Janssens 2012-08-01 11:19:57 UTC
To increase the awareness of this issue, I'll even be as bold as to reopen this bug, because until now no one seems to have confirmed this is actually fixed.

What appears to have been fixed (in 2.12, not 2.6 as this bug suggests) is the support for tooltips on individual cells in a GtkTreeView (see bug 80980).

A GtkCombobox internally uses a GtkTreeView, so the internal infrastructure seems to be in place. However as John correctly states, this TreeView is private, so it shouldn't be accessed directly. And there are no functions in the GtkCombobox api to set tooltips per item in the list, or to set a certain column in the tree model to contain the tooltips for the list.
Comment 7 Matthias Clasen 2015-03-08 14:52:40 UTC
I don't think this is going to happen in GtkComboBox.
Comment 8 Daniel Boles 2017-03-03 14:45:51 UTC
*** Bug 634594 has been marked as a duplicate of this bug. ***