Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]
- From: Tim Janik <timj gtk org>
- To: Damon Chaplin <damon karuna eclipse co uk>
- Cc: gtk-devel-list <gtk-devel-list gnome org>, Kristian Rietveld <kris imendio com>
- Subject: Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]
- Date: Sat, 16 Jun 2007 01:59:52 +0200 (CEST)
On Sat, 16 Jun 2007, Damon Chaplin wrote:
On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote:
please read Kris' description again.
if you set ::tooltip-markup, ::has-tooltip is set automatically, and
you don't need to worry about it. this is *not* the case if you connect to
::query-tooltip and possibly return TRUE. there is no way for gtk to tell
this kind of setup and querying every widget would be excessively
expensive, so we need the user to set ::has-tooltip here.
We discussed it before. I said that query-tooltip should really only be
emitted just before a tooltip is shown, and you agreed. If that is done
the efficiency problem disappears, doesn't it?
i'm not sure it does (on every machine). worst case, there would be
widget_tree_height signal emissions for each pixel the mouse pointer
moves or at least 20 times a second if we reduce querying to 50ms
intervalls.
Damon
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]