Skip to content
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

[RealGUI] Fixes #183 : Use the qt menu instead of the native one in Mac OS #366

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

jnbrunet
Copy link
Contributor

@jnbrunet jnbrunet commented Aug 15, 2017

Following the issue #183 , this is a proposed solution since the issue is starting to date and is still present on OS X. Don't hesitate to refuse it if you prefer to go with another solution. At least now this fix will be publicly seen by people who wish to get a fast fix for the bug.

This is a small change that forces the GUI to use the Qt menu instead of the native one for Mac OS X. This feature is available for other operating system by disabling a new cmake option named "SOFAGUI_ENABLE_NATIVE_MENU" (the name matches the other gui related cmake options). This cmake option is true by default on every OSes except Mac OS X (Darwin).

Since I think that many people execute runSofa directly in the build directory instead of a bundled mac application (.app), this should fix the unresponsive menu bug.

Note that the menu will be displayed directly onto the GUI instead of the native menus of OS X GUI.

Note also that I didn't test this feature on Windows since I don't own a license. It does work well on Gnome shell based linux distro last time I checked. But anyway, the feature is disabled on other OSes than OS X, so it shouldn't change anything for those who use Windows or Linux.

If some people could help me by testing this feature on Windows and some Linux desktop environments, that would be great and bullet proofing the feature for people who wish to use the Qt menus even if they are not with OS X.


This PR:

  • builds with SUCCESS for all platforms on the CI.
  • does not generate new warnings.
  • does not generate new unit test failures.
  • does not generate new scene test failures.
  • does not break API compatibility.
  • is more than 1 week old (or has fast-merge label).

Reviewers will merge only if all these checks are true.

…ative one in order to standardize the way the menu is showed on every OS
@hugtalbot hugtalbot added pr: fix Fix a bug pr: status wip Development in the pull-request is still in progress labels Aug 16, 2017
@hugtalbot hugtalbot requested a review from fredroy August 16, 2017 07:00
@hugtalbot
Copy link
Contributor

Thanks JNB !
Damnit, it looks like the Mac CI is running out of space.. We will investigate it.
Do not forget to set the PR labels (especially the "to_review"), this allows other devs to focus on your PR in time. Cheers,

@hugtalbot hugtalbot added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Aug 16, 2017
@guparan guparan added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Aug 22, 2017
@guparan guparan merged commit 452d04c into sofa-framework:master Aug 23, 2017
@jnbrunet jnbrunet deleted the fix_mac_menu branch August 23, 2017 13:15
matthieu-nesme pushed a commit to Anatoscope/sofa that referenced this pull request Sep 6, 2017
[RealGUI] Fixes sofa-framework#183 : Use the qt menu instead of the native one in Mac OS
(cherry picked from commit 452d04c)
@guparan guparan modified the milestones: v17.06, v17.12 Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants