Bug 561047 - Require Gtk 3.20+ as minimum
Summary: Require Gtk 3.20+ as minimum
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.16 M3   Edit
Assignee: Alexander Kurtakov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-12 05:04 EDT by Alexander Kurtakov CLA
Modified: 2020-08-07 12:36 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kurtakov CLA 2020-03-12 05:04:07 EDT
This would allow to simplify the usage of GTK css machinery, It became API in Gtk 3.20 so what we have for old versions is hope for the best behavior.
This is crucial step to start prep work for upcoming Gtk 4 release.
Comment 1 Eclipse Genie CLA 2020-03-12 11:31:23 EDT
New Gerrit change created: https://git.eclipse.org/r/159264
Comment 2 Eclipse Genie CLA 2020-03-12 12:37:41 EDT
New Gerrit change created: https://git.eclipse.org/r/159269
Comment 4 Eclipse Genie CLA 2020-03-12 13:11:24 EDT
New Gerrit change created: https://git.eclipse.org/r/159272
Comment 6 Eclipse Genie CLA 2020-03-12 14:59:49 EDT
New Gerrit change created: https://git.eclipse.org/r/159274
Comment 9 Ed Willink CLA 2020-04-05 09:22:16 EDT
This change breaks builds that do not have GTK 3.20.0.

See <https://ci.eclipse.org/ocl/job/ocl-master/471/display/redirect>

Bug 561784 raised.
Comment 10 Alexander Kurtakov CLA 2020-04-05 11:02:00 EDT
(In reply to Ed Willink from comment #9)
> This change breaks builds that do not have GTK 3.20.0.
> 
> See <https://ci.eclipse.org/ocl/job/ocl-master/471/display/redirect>
> 
> Bug 561784 raised.

URL gives 502 so can't see it but based on the bug content you seem to be on old infrastructure. New infrastructure has 3.20+.
Comment 11 Alexander Kurtakov CLA 2020-04-05 11:03:12 EDT
I'm putting your bug in see also instead of being blocker for swt.
Comment 12 Ed Willink CLA 2020-04-05 12:51:02 EDT
(In reply to Alexander Kurtakov from comment #10)
> New infrastructure has 3.20+.

Good.

> New infrastructure has 3.20+.

Once again the very long migration time means that the old infrastructure kills me.
Comment 13 Rolf Theunissen CLA 2020-07-27 05:55:40 EDT
Should the minimal version in required in the Equinox launcher also have been increased? Now it seems to me that only a warning is logged, the user is not notified clearly. (From the current number of bugs flowing in, this makes at least one very unhappy user.)

https://git.eclipse.org/c/equinox/rt.equinox.framework.git/tree/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c
Comment 14 Peter Severin CLA 2020-08-06 10:13:01 EDT
Nota that this fix breaks Eclipse on Ubuntu 16.04 LTS (long term support version), at least in some places. I've had a report from a customer about the Location Browse button in the New Project wizard which cases a No more handles error:

org.eclipse.swt.SWTError: No more handles
        at org.eclipse.swt.SWT.error(SWT.java:4749)
        at org.eclipse.swt.SWT.error(SWT.java:4638)
        at org.eclipse.swt.SWT.error(SWT.java:4609)
        at org.eclipse.swt.widgets.Dialog.error(Dialog.java:202)
        at org.eclipse.swt.widgets.DirectoryDialog.openNativeChooserDialog(Direc
toryDialog.java:139)
        at org.eclipse.swt.widgets.DirectoryDialog.open(DirectoryDialog.java:123
)
        at org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea.handl
eLocationBrowseButtonPressed(ProjectContentsLocationArea.java:348)
        at org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea.acces
s$7(ProjectContentsLocationArea.java:319)
        at org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea$2.wid
getSelected(ProjectContentsLocationArea.java:223)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
252)
Comment 15 Rolf Theunissen CLA 2020-08-06 12:40:24 EDT
(In reply to Peter Severin from comment #14)
> Nota that this fix breaks Eclipse on Ubuntu 16.04 LTS (long term support
> version), at least in some places. I've had a report from a customer about
> the Location Browse button in the New Project wizard which cases a No more
> handles error:
> 
> org.eclipse.swt.SWTError: No more handles
>         at org.eclipse.swt.SWT.error(SWT.java:4749)
>         at org.eclipse.swt.SWT.error(SWT.java:4638)
>         at org.eclipse.swt.SWT.error(SWT.java:4609)
>         at org.eclipse.swt.widgets.Dialog.error(Dialog.java:202)
>         at
> org.eclipse.swt.widgets.DirectoryDialog.openNativeChooserDialog(Direc
> toryDialog.java:139)
>         at
> org.eclipse.swt.widgets.DirectoryDialog.open(DirectoryDialog.java:123
> )
>         at
> org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea.handl
> eLocationBrowseButtonPressed(ProjectContentsLocationArea.java:348)
>         at
> org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea.acces
> s$7(ProjectContentsLocationArea.java:319)
>         at
> org.eclipse.ui.internal.ide.dialogs.ProjectContentsLocationArea$2.wid
> getSelected(ProjectContentsLocationArea.java:223)
>         at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
> 252)

See Bug 565607, there should have been a warning to the user.
Comment 16 Peter Severin CLA 2020-08-07 12:32:28 EDT
Yes, it's a good idea, though there is no such warning in Eclipse 4.16, so it's just broken on Ubuntu 16.04. On the other hand is it wise to completely drop support for a still maintained distribution?
Comment 17 Alexander Kurtakov CLA 2020-08-07 12:36:36 EDT
(In reply to Peter Severin from comment #16)
> Yes, it's a good idea, though there is no such warning in Eclipse 4.16, so
> it's just broken on Ubuntu 16.04. On the other hand is it wise to completely
> drop support for a still maintained distribution?

If more people landed a hand to fix bugs and etc. - probably not. With current amount of manpower and work on GTK 4.x starting - I fully stand behind the chnage.