This repository was archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 606
Added support of Native Menus in Linux #602
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
221b330
fix a memory leak
eyelash 2216c01
linux-native-menus: implement separators
eyelash 83f3748
linux-native-menus: use the native menu model
eyelash c47819f
linux-native-menus: implement the callback
eyelash 04f56c7
linux-native-menus: position the items correctly
eyelash 6c09c32
linux-native-menus: implement some more functions
eyelash 354c10e
Merge branch 'linux-native-menus' of https://github.com/eyelash/brack…
ingorichter 2f15dfd
Added support of native menu shortcuts in Linux
saurabh95 ff6abd4
Addressed review comments
saurabh95 0f67000
Added functionality of enabling and disabling menu items
saurabh95 98ccf5b
Code Cleanup
saurabh95 1524d7b
Addressed review comment
saurabh95 0ecc5c8
Addressed review comments
saurabh95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this seems to be common code (i.e. windows, mac and win).
Isn't the menu item state being set in line 608?
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.
Actually
NativeMenuModel::getInstance(getMenuParent(browser)).setMenuItemState(command, enabled, checked);
does not work for Linux as it only sets a flag, so I have addedSetMenuState
function which is meant only for Linux and for case of Windows and MAC it is No Op