Re: ComboBox and Tooltips


On Sat, 2007-03-24 at 14:50 +0100, Jeffrey Ratcliffe wrote:
Thanks, Chas, for the workaround.

On 23/03/07, muppet <scott asofyet org> wrote:
Yet again, the answer is "there is nothing in the bindings that would
cause this sort of behavior, so this is a gtk+ issue."

To wit, i see the exact same behavior from this transliteration of
your perl code to C (feel free to include it in your bugzilla
report ;-):

Unfortunately, for reasons I don't fully understand, it seems to be a
feature, rather than a bug:

The developer's comment was "Supporting tooltips on combobox items
depends on support for tooltips in tree view (think list-mode)."

a GtkComboBox is, widget-wise, the same as a GtkTreeView with some magic
attached; the (old) GtkTooltips API doesn't support adding tooltips into
a GtkTreeView because the CellRenderer objects do not receive the enter
and leave notify signals.

the new tooltip API in GTK+ trunk, which should (hopefully) become GTK+
2.12 before july, will allow adding tooltips into GtkTreeView and
GtkComboBox widgets. so, you'll have to wait - and for the time being
use event boxes.


Emmanuele Bassi,  E: ebassi gmail com

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