GtkComboBox still doesnt have tooltips (was: scheme multichoice options untranslated!)

Christian Stimming stimming at tuhh.de
Fri Dec 23 04:59:49 EST 2005


Hi David,

David Hampton schrieb:
>>In the 
>>1-8-branch these untranslated strings were then passed through gettext before 
>>they were displayed. Obviously this doesn't happen anymore. David, any 
>>idea...? 
> 
> Fixed.  I forgot the translation when I converted from the deprecated
> GtkOptionMenu widget to the newer GtkComboBox widget.

Thanks. That was quick. I guessed it was something like this...

However, when I now see the original change,
http://svn.gnucash.org/cgi-bin/viewcvs.cgi/gnucash/trunk/src/gnome-utils/dialog-options.c?r1=10094&r2=11565
then it is also clear to me why the tooltips for the multichoice entries 
are no longer visible, because the GtkComboBox doesn't seem to have an 
easy way for adding tooltips and the 
gnc_option_permissible_value_description() is no longer used. That's a 
bit unfortunate :-/

Also, the gtk documentation doesn't tell whether you can set tooltips by 
using a GtkTreeModel-based GtkComboBox or whether that would only work 
by adding your own callbacks for displaying a tooltip. There's
http://mail.gnome.org/archives/gtk-app-devel-list/2004-December/msg00022.html
where Matthias Clasen says "It is not really possible to put tooltips on 
combo boxes currently. If you are curious, you can look at what I did to 
make a tooltip appear for the filter combobox in the file chooser."
And there is
http://mail.gnome.org/archives/gtk-app-devel-list/2003-October/msg00241.html
which says that it's difficult as well. But there is also
http://mail.gnome.org/archives/gtk-list/2005-February/msg00172.html
who claims "Problem solved. Putting the GtkComboBox inside an 
GtkEventBox solved the problem." There is also
http://cvs.sourceforge.net/viewcvs.py/*checkout*/groundstation/grig2/src/grig-gtk-workarounds.c?rev=1.2
who has a workaround on his own, but methinks this is only one general 
tooltip, not a row-specific one.
And finally there's http://bugzilla.gnome.org/show_bug.cgi?id=303717 
which basically says it is still not available :-( . sigh.

Christian



More information about the gnucash-devel mailing list