Bug 342318 - SWT GTK3 doesn't render tables with GTK3 Theme "oxygen-gtk"
Summary: SWT GTK3 doesn't render tables with GTK3 Theme "oxygen-gtk"
Status: RESOLVED DUPLICATE of bug 340288
Alias: None
Product: Oxygen
Classification: Plasma
Component: gtk3-engine (show other bugs)
Version: 4.13.2
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL: https://bugs.eclipse.org/bugs/attachm...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-29 20:12 UTC by Andrey Loskutov
Modified: 2015-01-28 02:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
eclipse tables with adwaita theme (OK) (53.64 KB, image/png)
2014-12-29 20:13 UTC, Andrey Loskutov
Details
eclipse tables with oxygen-gtk theme (EMPTY!) (29.40 KB, image/png)
2014-12-29 20:15 UTC, Andrey Loskutov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov 2014-12-29 20:12:59 UTC
This is follow up on bug reported against SWT GTK3 port:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=432673

This might be the wrong place to ask for help, but currently I don't have any other option.
The upcoming Eclipse 4.5 will ship with GTK3 support by default. Unfortunately, if using Eclipse under KDE with the default oxigen-gtk theme, the content of the tables aren't rendered properly (or not shown?).

Reproducible: Always

Steps to Reproduce:
From https://www.eclipse.org/swt/examples.php:
1. get Eclipse 4.5 M4 for GTK from http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M4-201412102000/ (direct link: http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M4-201412102000/download.php?dropFile=eclipse-SDK-4.5M4-linux-gtk-x86_64.tar.gz)
2. Unzip eclipse and start ./eclipse launcher.
3. In the main menu select Window->Perspective->Customize Perspective

Actual Results:  
You will see few tabs with empty tables.

Expected Results:  
The tables should be filled with content.

This happens only if using "oxygen-gtk" as theme for GTK3.
Using "adwaita" theme Eclipse shows everything OK (but ugly and non-KDE like).
Comment 1 Andrey Loskutov 2014-12-29 20:13:57 UTC
Created attachment 90160 [details]
eclipse tables with adwaita theme (OK)
Comment 2 Hugo Pereira Da Costa 2014-12-29 20:15:13 UTC

*** This bug has been marked as a duplicate of bug 340288 ***
Comment 3 Andrey Loskutov 2014-12-29 20:15:33 UTC
Created attachment 90161 [details]
eclipse tables with oxygen-gtk theme (EMPTY!)

I've added two screenshots to demonstrate the issue. I can help with testing if needed.
Comment 4 Ruslan Kabatsayev 2014-12-30 11:04:00 UTC
@Hugo I don't think this one is a duplicate. The theme is loaded and almost works.
@Andrey what if you set OXYGEN_DISABLE_INNER_SHADOWS_HACK=1 environment variable before running eclipse?
Comment 5 Andrey Loskutov 2014-12-30 11:20:48 UTC
Ruslan, you are genius! This helps!!!  Thanks!
Any technical hints why this needed and what the best way for Eclipse to deal with this?
Should we fix Eclipse launcher to always set this variable, I guess this should not affect any other themes? Or is there a more elegant solution possible?
Comment 6 Hugo Pereira Da Costa 2014-12-30 11:21:22 UTC
@Ruslan
I agree. However, I do not see much point in fixing issue for a code that will become dead and useless the next time gtk3 is updated ... Hence the 'duplicate'. 
Now of course, if there is an easy fix prior to this programmed death ...
Comment 7 Ruslan Kabatsayev 2014-12-30 11:25:48 UTC
@Andrey
Actually, I do agree with Hugo on the uselessness of our trying to fix this on oxygen-gtk3 side. Starting form GTK 3.15, theme engines won't be loaded at all, and oxygen-gtk3 will be dead, as you may have read in the bug which this one is marked a duplicate of. So, either wait until GTK 3.15 is widespread, so that the bug would be invalidated, or temporarily set this variable for the launcher.
Comment 8 Ruslan Kabatsayev 2014-12-30 11:31:18 UTC
> Any technical hints why this needed
This is because of how some (non-)GTK apps like Eclipse interact with our (rather intrusive) hacks. These apps aren't true GTK, thus the incompatibility. I just know this symptom, that's why it was the first thing to suggest.
Comment 9 Andrey Loskutov 2014-12-30 11:44:43 UTC
Anyway, thanks guys!
I will try to patch Eclipse then.

I really appreciate your work and it is really sad what happens with GTK/Gnome in the last few years. They seem to live in a parallel universe with only brain dead users eagerly waiting for the next removed feature. But this is going too much offtopic.
Comment 10 Andrey Loskutov 2014-12-30 12:13:46 UTC
Just for the record, the proposed patch for Eclipse is: https://git.eclipse.org/r/38843