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 63019 - Tooltips for [label in] notebook tabs
Tooltips for [label in] notebook tabs
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkNotebook
1.2.x
Other All
: Normal normal
: Medium API
Assigned To: gtk-bugs
gtk-bugs
: 157227 (view as bug list)
Depends on: 50619
Blocks:
 
 
Reported: 2001-10-25 15:35 UTC by Morten Welinder
Modified: 2013-08-14 02:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase.c (1.03 KB, text/plain)
2004-11-13 22:43 UTC, Christian Persch
Details

Description Morten Welinder 2001-10-25 15:35:49 UTC
IMHO, it should be possible to add tooltips for notebook tabs, even when
they are just labels.  In that context, labels are a bit like buttons.

One could add a eventbox, but that seems to interfere with the tabs'
working.
Comment 1 Owen Taylor 2001-11-19 17:13:59 UTC
If you connect to ::realize on the eventbox, and call 
gdk_window_get_events/gdk_window_set_events, to remove
the BUTTON_PRESS_MASK/RELEASE_MASK from the widget->window
it would probably work OK. 

Yes, there probably should be an API for adding tooltips
to notebook tab labels, though I'm not really sure they
are a great idea ... once you switch to the page, it
should be obvious what the page does, or your GUI needs
more help than a few tooltips.
Comment 2 Mariano Suárez-Alvarez 2004-11-01 03:23:57 UTC
This seems to work of for me using 2.4.14...
Comment 3 Christian Persch 2004-11-13 22:42:39 UTC
While packing the real label in an event box to set tooltips on works with
regular mouse-over tooltips, it doesn't work for providing tooltips in keyboard
mode (Control-F1). I'm going to attach a testcase. In Control-F1 mode, the
tooltip shown is the notebook's tooltip not the tab label's, while the tab label
is 'visibly focused'.
Comment 4 Christian Persch 2004-11-13 22:43:11 UTC
*** Bug 157227 has been marked as a duplicate of this bug. ***
Comment 5 Christian Persch 2004-11-13 22:43:24 UTC
Created attachment 33742 [details]
testcase.c
Comment 6 Owen Taylor 2004-11-14 00:03:44 UTC
Getting Control-F1 working for widgets that don't get the focus
individually won't work without some fundemental reworking of the tooltip
system.
Comment 7 Matthias Clasen 2004-11-14 00:49:58 UTC
Christian, you can look at the hoops I had to jump through to get Ctrl-F1
work for the tooltip on the filter combobox in the file chooser...