GNOME Bugzilla – Bug 303717
GtkComboBox menu items: tooltips support?
Last modified: 2017-03-03 14:45: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...
Supporting tooltips on combobox items depends on support for tooltips in tree view (think list-mode).
*** Bug 380586 has been marked as a duplicate of this bug. ***
Fixed in gtk+ 2.12.0
(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.
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 ?
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.
I don't think this is going to happen in GtkComboBox.
*** Bug 634594 has been marked as a duplicate of this bug. ***