GNU bug report logs -
#24899
25.1; x-hide-tip always returns nil with USE_GTK
Previous Next
Reported by: nverno <noah.v.peart <at> gmail.com>
Date: Tue, 8 Nov 2016 05:03:02 UTC
Severity: normal
Found in version 25.1
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Calling `x-hide-tip` always returns nil (it is documented to
> return t when the tooltip is active). I noticed this after
> recently compiling with gtk3. I was using `x-hide-tip` in
> a toggling function that stopped toggling. As an example
> of what currently doesn't work:
>
> (defun toggle-tip ()
> (interactive)
> (or (x-hide-tip)
> (pos-tip-show "hi")))
>
>
> In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
> of 2016-11-07 built on nverno-M51AC
> Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
> System Description: Ubuntu 16.04.1 LTS
>
> Configured using:
> 'configure --with-x-toolkit=gtk3 --with-modules --with-xwidgets'
Thanks for the report. I think that before investigating this further
we need another recipe. Yours is based on ‘pos-tip-show’ which is not
part of Emacs. Does ‘pos-tip-show’ use GTK+ tooltips or the native
Emacs ones - what is your value of ‘x-gtk-use-system-tooltips’?
Then we would have to decide how to retrieve a non-nil return value for
‘x-hide-tip’ in the first place. Here the tooltip disappears
immediately when I type anything, so the return value is always nil by
force, presumably. We'd probably need a timer to test your function.
Finally, we would have to check the results for the function you get
this way for both ‘x-gtk-use-system-tooltips’ nil/t settings and for at
least one other toolkit.
Can you please try doing all that?
Thanks again, martin
This bug report was last modified 7 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.