-
Notifications
You must be signed in to change notification settings - Fork 187
possibility to suppress GTK interactive search (popup) #1829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
iloveeclipse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide meaningful commit message.
See
- https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md#what-does-a-valid-pr-look-like-checklist
- https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md#commit_message_recommendations
After that, please amend your commit and force push to same branch.
Please note, that we are at 4.35 RC phase so no API changes are allowed for this release.
bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java
Outdated
Show resolved
Hide resolved
78e1d5d to
ae774d9
Compare
So we'll have to wait for the next release. |
Yes. Currently you have 3 commits including one merge commit. Please squash your changes to one commit, rebase it on top of master branch and force push to same branch on github. |
isn't it good practive to separate functional commit and version increase commit? |
Correct, however I can't distinguish your commits in github UI because they have exact same commit message. |
force push is rejected with message Either way i didn't branch on my fork. |
Yes. Id you work on master, you shouldn't do this in the future. |
|
What I sometimes do is locally rename the branch I'm using for the PR, check out master again, pull, create a branch with the name previously used for the PR, commit the changes to that branch, and then force push that. That updates the current PR with completely new clean content rather than close a PR and open a new PR... |
Thanks for the hint! |
|
the Jenkins build failes with Did i increase the versions in a wrong way? |
|
The API tools are very conservative about what is a breaking change. Adding a public static field to a class is considered API-breaking and hence it wants a 4.0.0. But that's not really acceptable so the error needs to be suppressed. Normally that's done via the a quick-fix in the IDE; was the error not already evident in the IDE? |
80cf69b to
d6c80a4
Compare
In first place i didn't set up API tools / baseline correctly. Now it showed up and offered the quick fixes. |
|
btw, the binary fragments require host bundle-version="[3.128.." . couldn't it be increased to [3.129 ? |
|
Yes, I think these much match. Note that you will need to redo all this at the start of the next release cycle, so I'm not sure you want to bang your head on this now... |
It's probably better to use the setup which does all the necessary and desired things: https://github.com/eclipse-platform/eclipse.platform.swt?tab=readme-ov-file#contributing-to-swt E.g., it will update the target platform and the API baseline when the time comes for that... |
081d132 to
d7d4436
Compare
i was afraid of that :D but next time it'll go in a minute |
b19cb9c to
32f3104
Compare
|
Hi @iloveeclipse |
| if ((getShell ().style & SWT.ON_TOP) != 0) { | ||
| GTK.gtk_tree_view_set_search_column (handle, -1); | ||
| } | ||
| if ((style & SWT.NO_SEARCH) != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we combine this "if" with the previous one, in a style consistent with the Tree / Table code below and extract the condition into searchEnabled() method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, did it.
(even when imho i think that the implementation of the no_search() method is ugly, too many negations)
See my comment in code above, beside this it looks good & ready to merge. If you change the code, please first rebase on master, then amend commit & force push. |
890323b to
b30e803
Compare
|
the build fails on PLATFORM = 'gtk.linux.riscv64' i assume it's not from my changes ?! |
For sure not. It's Friday, both hard- and software is already in the weekend mode :-) |
something seems broken on the linux-risc build. All pull requests seem to fail there. |
Just a test if we can rebuild natives on gtk.linux.riscv64 See eclipse-platform#1829
I've just triggered #1931 to have a proof. |
tables eclipse-platform#1830 add SWT.NO_SEARCH flag used in Table, Tree and List to prevent the interactive search (popup) in a GTK environment when set to true.
At least that one didn't wanted to rebuild binaries and failed for a different reason, but it was on top of master (yours is not). Let rebase this PR. |
... and finally we have a green state! |
iloveeclipse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will handle search_enabled vs searchEnabled inconsistent naming in a follow up PR.
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java
Show resolved
Hide resolved
Follow up on eclipse-platform#1829 review. Renamed the `search_enabled` method to have same name / visibility as on Tree/Table classes.
Follow up on #1829 review. Renamed the `search_enabled` method to have same name / visibility as on Tree/Table classes.
|
thanks a lot. Great! |
Follow up on eclipse-platform#1829 review. Renamed the `search_enabled` method to have same name / visibility as on Tree/Table classes.
No description provided.