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 114851 - Cannot determine the widget for which tooltip is displayed
Cannot determine the widget for which tooltip is displayed
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Solaris
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
AP2
Depends on:
Blocks: 76266
 
 
Reported: 2003-06-10 14:55 UTC by padraig.obriain
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (856 bytes, patch)
2003-06-10 14:57 UTC, padraig.obriain
none Details | Review
Updated patch (1.86 KB, patch)
2003-10-28 14:15 UTC, padraig.obriain
none Details | Review

Description padraig.obriain 2003-06-10 14:55:41 UTC
When a tooltip is displayed it is not possible to determine from the
tooltip window the widget whose tooltip is displayed.
Comment 1 padraig.obriain 2003-06-10 14:57:08 UTC
Created attachment 17394 [details] [review]
Proposed patch
Comment 2 Calum Benson 2003-06-25 22:52:02 UTC
Marking AP2 to reflect a11y team's assessment of a11y impact.
Comment 3 Owen Taylor 2003-08-01 18:48:38 UTC
We *never* use object data as part of the public API
Comment 4 Calum Benson 2003-08-07 16:15:42 UTC
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME
bug list :)
Comment 5 Owen Taylor 2003-08-11 16:39:16 UTC
I'd probably do this as a straightforward API like:

 gtk_tooltips_get_info_from_tip_window (GtkWindow    *tip_window,
                                        GtkTooltips **tooltips,
                                        GtkWidget   **current_widget);
Comment 6 padraig.obriain 2003-10-28 14:15:02 UTC
Created attachment 21000 [details] [review]
Updated patch
Comment 7 bill.haneman 2003-12-05 12:18:43 UTC
review of patch requested for gtk+ 2.4.  This blocks implementation of
a desirable and significant (but possibly non-essential) ATK/gail feature.
Comment 8 Owen Taylor 2004-02-12 22:30:45 UTC
* Needs documentation, including a warning that this should
  not be used by applications.

* Function needs a g_return_if_fail (GTK_IS_WINDOW (tip_window))

* The function segfaults if called on a window that isn't
  from GtkTooltips; since there's no way of finding out if
  a window is from GtkTooltips, this seems bad :-)
  I'd probably add a boolean return value with FALSE if  
  the window isn't from GtkTooltips; in that case, though
  it's still nice to NULL out the two out parameters.

* I don't like reusing the key like that, the name GtkTooltipsData
  is a specific reference to the GtkToolTipsData structure

Otherwise, looks OK to me.

Comment 9 Matthias Clasen 2004-02-12 22:58:28 UTC
Ok, I went ahead and committed the patch with the changes outlined by
owen, and with docs.