If you’re on a bleeding edge linux distribution like Fedora 30 or Arch you may encounter some ugly artifacts in your programs right now like i do with Eclipse which looks something like this:

screenshot eclipse with overlapping artifacts in the project explorer

Doing some research leads us to following Bug entry in the Eclipse Bugtracker.

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

Where we can find out that its a problem with the gtk version 3.24.9 and that the devs are working on some fixes for it.

https://gitlab.gnome.org/GNOME/gtk/issues/1977

So how to fix this now?

My solution to fix this problem is as follows.

  • Downgrade the gtk version to 3.24.8

  • And skip the current version of gtk3 from your updates until the next version 3.24.10 will show up.

So lets go..

sudo dnf downgrade gtk3-3.24.8

So far so good we should have working menus in eclipse again:

screenshot eclipse fixed view

but after we run dnf update the next time gtk3 will automaticly update again.

To deal with this problem we have different solutions like running dnf update with the exclude flag as follows dnf update -x gtk3 or exlcude gtk completely from the package manager or we make it proper by just installing a dnf plugin which will allow us to skip a specific version of gtk until a new version shows up.

sudo dnf install python3-dnf-plugin-versionlock
sudo dnf versionlock exclude gtk3-3.24.9-*.fc30

Here we go. We should be able to use dnf like we’re used to and the fixed version of Gtk3 should show up as soon as its available through the package manager for us.