Bug 291106 - Unreadable tooltips with oxygen-gtk3
Summary: Unreadable tooltips with oxygen-gtk3
Status: CLOSED FIXED
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk2-engine (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 02:10 UTC by nucleo
Modified: 2012-05-15 04:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
tooltips in palimpsest (90.39 KB, image/png)
2012-01-10 02:11 UTC, nucleo
Details
unreadable tooltips in save window (71.74 KB, image/png)
2012-01-10 12:53 UTC, nucleo
Details
debug messages when unreadable tooltips shown (27.50 KB, text/plain)
2012-01-10 14:45 UTC, nucleo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nucleo 2012-01-10 02:10:40 UTC
Version:           unspecified (using Devel) 
OS:                Linux

There is a bug in gtk3 applications similar to bug 283572.

Reproducible: Always

Steps to Reproduce:
1. Start gnome-disk-utility-3.0.2 (palimpsest).
2. Open File - Connect to server
3. Move cursor above input fields

Actual Results:  
Black text in black tooltips is unreadable.

Expected Results:  
Text should be readable.
Comment 1 nucleo 2012-01-10 02:11:21 UTC
Created attachment 67632 [details]
tooltips in palimpsest
Comment 2 Hugo Pereira Da Costa 2012-01-10 12:44:25 UTC
Can you reproduce with other applications ? e.g. GEdit ? 
I cannot here (with gtk3.0), and with gedit.

If not, then this might be a disk-utility bug, or a custom widget that we do not catch as a tooltip, when assigning foreground colors in style properties.

I guess I "could" figure it out if you run disk-utility with oxygen-gtk3 compiled in debug mode, and dump (here, as attachment) the log, after you triggered the appearance of one tooltip.

Cheers,

Hugo
Comment 3 nucleo 2012-01-10 12:53:33 UTC
Created attachment 67656 [details]
unreadable tooltips in save window

I can reproduce this in gtk3-based guvcview-1.5.1.
There is general Save file window, tooltips in left panel are unreadable.
Comment 4 Hugo Pereira Da Costa 2012-01-10 13:07:39 UTC
http://wstaw.org/m/2012/01/10/plasma-desktopys3538.jpg
Just to show you that I am not lying. 
(and this is a gtk3 application - gedit-3.0.6)

This could be either a regression introduced with more recent version of gtk3
Or an issue with some custom settings in your settigns.ini (I've seen some warning reported about this guy in your other bug report. Could you double check that there is no color set in there ? My settings.ini is pretty empty:

[Settings]
  gtk-theme-name = oxygen-gtk

)
Comment 5 nucleo 2012-01-10 13:27:38 UTC
I can reproduce this bug also in gedit save window with gtk 3.2.2 and 3.3.6. with settings.ini as you wrote.
Maybe I will try to test later with gtk 3.0.x.

Build failed when I tried to build -DOXYGEN_DEBUG=1:
/builddir/build/BUILD/oxygen-gtk3-1.2.0/src/oxygenwidgetlookup.cpp: In member function 'void Oxygen::WidgetLookup::initializeHooks()':
/builddir/build/BUILD/oxygen-gtk3-1.2.0/src/oxygenwidgetlookup.cpp:124:65: error: 'endl' was not declared in this scope
/builddir/build/BUILD/oxygen-gtk3-1.2.0/src/oxygenwidgetlookup.cpp:124:65: note: suggested alternative:
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/ostream:543:5: note:   'std::endl'
make[2]: *** [src/CMakeFiles/oxygen-gtk.dir/oxygenwidgetlookup.o] Error 1
Comment 6 Hugo Pereira Da Costa 2012-01-10 13:32:00 UTC
ok. So most likely a change in gtk3 that we did not catch when we assign foreground colors.
As for the debug mode compilation issue, fixing now. 
Thanks for the help !
Comment 7 Hugo Pereira Da Costa 2012-01-10 13:40:51 UTC
Git commit 9431b0e908c6b2e05a059053ebcee26458fe6236 by Hugo Pereira Da Costa.
Committed on 10/01/2012 at 14:40.
Pushed by hpereiradacosta into branch 'gtk3'.

fixed compilation in debug mode;
added some debugging information.

M  +20   -2    src/oxygenwidgetlookup.cpp

http://commits.kde.org/oxygen-gtk/9431b0e908c6b2e05a059053ebcee26458fe6236
Comment 8 nucleo 2012-01-10 14:45:01 UTC
Created attachment 67660 [details]
debug messages when unreadable tooltips shown

Tooltips are readable with gtk 3.0.12.

Debug messages are for gtk-3.2.2 Save window.
Comment 9 Hugo Pereira Da Costa 2012-01-10 15:16:29 UTC
That helps. Thanks ! will investigate !
Comment 10 Hugo Pereira Da Costa 2012-01-10 17:27:51 UTC
Git commit fb5f66d2c94b3934dd35ae1393591a3a882236d2 by Hugo Pereira Da Costa.
Committed on 10/01/2012 at 18:26.
Pushed by hpereiradacosta into branch 'gtk3'.

attempt at fixing tooltip's foreground color.

M  +1    -1    src/oxygenqtsettings.cpp

http://commits.kde.org/oxygen-gtk/fb5f66d2c94b3934dd35ae1393591a3a882236d2
Comment 11 Hugo Pereira Da Costa 2012-01-10 17:28:39 UTC
Nucleo ? This is an attempt at fixing, based on your debug output, though I could not reproduce, because I'm running too old gtk3.

Thanks for testing, 

Hugo
Comment 12 nucleo 2012-01-10 17:56:14 UTC
Tooltips text readable now with gtk-3.2.2 and 3.3.6 (3.0.12 not tested).
Comment 13 Hugo Pereira Da Costa 2012-01-10 17:58:09 UTC
Awesome ! So closing
(it does work with gtk3.0 too, I checked)