ControlSystemStudio / cs-studio

Control System Studio is an Eclipse-based collections of tools to monitor and operate large scale control systems, such as the ones in the accelerator community.
https://controlsystemstudio.org/
Eclipse Public License 1.0
111 stars 96 forks source link

gtk2 no longer supported. #2645

Open shroffk opened 3 years ago

shroffk commented 3 years ago

https://www.eclipse.org/eclipse/news/4.10/platform.php#gtk2-removal

Dropped support for GTK2 GTK2 is no longer a supported target environment for Eclipse/SWT on Linux in 4.10, and Eclipse/SWT applications will no longer run on GTK2. Furthermore the SWT_GTK3 environment variable is ignored, as only GTK3 is supported now.

However, with gtk3 there are issues on debian.

@willrogers @tanviash @dxmaxwell

willrogers commented 3 years ago

Do you know what the issues are? As far as I can tell GTK3 works fine on RHEL7 and does also fix a few niggles from GTK2.

shroffk commented 3 years ago

https://bugs.eclipse.org/bugs/show_bug.cgi?id=517671 https://bugs.eclipse.org/bugs/show_bug.cgi?id=528683

These issues describe the same/similar problem.

willrogers commented 3 years ago

Presumably you have tried these two workarounds:

By creating a new user, copying everything within ~/.config from my usual user to the new user, and then iteratively removing config files, I have found the culprit on my system:

  GTK_IM_MODULE=xim

I had set this environment variable so that XCompose would work in Gtk+ applications. (The default Gtk+ input method was ignoring my ~/.XCompose file.)

If I unset GTK_IM_MODULE before starting Eclipse, the flickering problem goes away. Surprisingly, my custom compose sequences still work in Eclipse, so I guess Gtk+3 has added support for XCompose in its default input method module.

Would be great to know *why* XIM causes flicker in Eclipse, but I guess that's an exercise for the SWT developers. :)

and

Hi, 

Just my two little cents for those who are looking for a temporary fix. Flickering disappeared by removing gtk3 setting.ini in /home/$USER/.config/gtk3/ (don't forget to login/out afterward).
shroffk commented 3 years ago

yes, tried these two

willrogers commented 3 years ago

I can't see any discussion in these tickets about gdm or lightdm.