After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 51035 - patch to implement proximity delay when displaying tooltips.
patch to implement proximity delay when displaying tooltips.
Status: RESOLVED DUPLICATE of bug 50619
Product: gtk+
Classification: Platform
Component: Widget: Other
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-02-18 07:42 UTC by Sri Ramkrishna
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gzipped patch (1.29 KB, patch)
2001-02-18 07:44 UTC, Sri Ramkrishna
none Details | Review

Description Sri Ramkrishna 2001-02-18 07:42:45 UTC
This patch implements the "proximity delay" when displaying tooltips.
The rationale for this patch has been posted in my message to gtk-list
with Message-ID <87zp6h37bs.fsf@pc-hrvoje.srce.hr>.  Here is a
summary:

    Gtk lets the application specify the delay parameter of a tooltip
    object.  The delay is the time the mouse needs to hover over the
    object for the tooltip to appear, the default delay being half a
    second.

    However, when a tooltip object encompasses several close widgets (e.g.
    a toolbar), and you want to see the tooltip of each button, you have
    to wait for the delay period to pass over every widget, which tends to
    get annoying.  Many other windowing systems (e.g. Windows) show the
    following tooltip immediately.

This patch implements that behaviour by introducing the notion of
"proximity delay".  If less than 200 msecs pass after a tooltip has
been destroyed, the next tooltip within the same tooltip object will
be shown immediately.  The proximity delay can be changed using the
new function gtk_tooltips_set_proximity_delay().

hangeLog entry (also present in the patch) is as follows:

1999-02-24  Hrvoje Niksic  <hniksic@srce.hr>

        * gtk/gtktooltips.c (gtk_tooltips_set_proximity_delay): New
        function.
        (gtk_tooltips_proximity_timeout): Ditto.
        (gtk_tooltips_set_active_widget): Setup the timeout when hiding
        tip_window.
        (gtk_tooltips_event_handler): If a tooltip was recently destroyed,
        draw the new one immediately.

        * gtk/gtktooltips.h (struct _GtkTooltips): New members
        proximity_delay and proximity_timer_tag.
Comment 1 Sri Ramkrishna 2001-02-18 07:44:07 UTC
Created attachment 268 [details] [review]
gzipped patch
Comment 2 Owen Taylor 2001-02-18 21:31:12 UTC

*** This bug has been marked as a duplicate of 50619 ***