Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 501878 - Icons are not disabled
Summary: Icons are not disabled
Status: RESOLVED DUPLICATE of bug 552350
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 03:04 EDT by e Deviser CLA
Modified: 2020-04-28 04:13 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot of the icons. (11.33 KB, image/jpeg)
2016-09-21 03:04 EDT, e Deviser CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description e Deviser CLA 2016-09-21 03:04:55 EDT
Created attachment 264296 [details]
Screenshot of the icons.

I try to explain the problem I am having with Eclipse: Well, as shown in my attached screenshot all Icons seems to be enabled. But normally some Icons are disabled. For Example: When the Debugger is in running, you cannot press the resume button, but the resume button and the Stop button appear like an enabled button. Nevertheless just one of them is clickable.

So in summary eclipses logic behind the Icons is working, but eclipse does not change the visual style of a button, when it is disabled (not clickable).

I had already a Diskussion at askUbuntu: http://askubuntu.com/questions/822104/eclipse-neon-icons-are-not-disabled?noredirect=1#comment1249546_822104

Further information:
    Eclipse Version: Eclipse Neon
    Ubuntu Version: Ubuntu 16.04 LTS
    Java Version: Java 8 (openjdk)

What I have already tried to do:
    I tried using Eclipse Mars. But is has the same behavior than Neon.
    I tried using Eclipse Luna. This works pretty fine. All disabled buttons are grayed out!!
Comment 1 Patrik Suzzi CLA 2016-09-21 22:06:49 EDT
Thanks for reporting. 

Could you please tell us which GTK version are you running in your ubuntu?
Comment 2 e Deviser CLA 2016-09-26 09:24:08 EDT
Hello Patrik,
I am not sure how to find out my gtk version. But I know that I have installed libgtk2.0-0 with version 2.24.30-1ubuntu1 and libgtk-3-0 with version 3.18.9-1ubuntu3.1.
Comment 3 Patrik Suzzi CLA 2016-09-28 05:51:08 EDT
(In reply to e Deviser from comment #2)
> Hello Patrik,
> I am not sure how to find out my gtk version. But I know that I have
> installed libgtk2.0-0 with version 2.24.30-1ubuntu1 and libgtk-3-0 with
> version 3.18.9-1ubuntu3.1.

Thanks, so you have multiple installs of lib gtk. 
Here is explained how to check which version is using Eclipse:

https://coffeeorientedprogramming.com/2014/10/27/how-to-tell-if-you-are-running-eclipse-on-gtk2-or-on-gtk3/


Then, as general rule: 
With Eclipse Neon (4.6) and higher, I suggest you using GTK 3
Until Eclipse Mars.2 (4.5.2) you're suggested to use GTK 2

You can force Eclipse using GTK2 or GTK3, by exporting a variable. 

# GTK 3 
export SWT_GTK3=1
eclipse

# GTK 2 
export SWT_GTK3=0
eclipse

Please, check which version is using Eclipse. 
Then, if needed, force the proper GTK version.
Comment 4 e Deviser CLA 2016-09-28 10:33:58 EDT
Hello Patrik,
.
My eclipse was using gtk version 3.18.9.

What I did now:

$cd myEclipseFolder
$export SWT_GTK3=0
$./eclipse

The result was an eclipse with an old style and with disabled buttons. So it looks like an outdated version, but the right Icons are looking disabled. :-)

Then I did: 

$cd myEclipseFolder
$export SWT_GTK3=1
$./eclipse

The result was an eclipse as shown in my screen shot within my first bugPost here. All icons are looking now enabled again, even if they are disabled.
Comment 5 Patrik Suzzi CLA 2016-09-28 13:10:38 EDT
Ok, thanks. 

Could you please tell me which version of Eclipse are you using?

Is it a clean version of Eclipse or did you install extra plug-ins?
Comment 6 e Deviser CLA 2016-10-05 02:32:46 EDT
I used a clean Version of Eclipse. I simply downloaded and executed the following versions:

Eclipse Luna SR2 IDE for C/C++ Developers for Linux 64bit. Release 2 (4.4.2)
Eclipse Neon IDE for C/C++ Developers for Linux 64bit. 1 Release (4.6.1)

Off topic note: Yes, in the Help>About window, it says "1 Release" in the Neon Version and "Release 2" in the Luna Version." Is this a Typo or is this a new spelling format?
Comment 7 Eclipse Genie CLA 2020-04-28 00:55:50 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Paul Pazderski CLA 2020-04-28 04:13:34 EDT
Fixed with bug 552350.

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