-
-
Notifications
You must be signed in to change notification settings - Fork 113
ChooseProjectButton: fix shortcut for Open Folder #1626
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
base: master
Are you sure you want to change the base?
Conversation
@@ -75,6 +75,7 @@ public class Code.ChooseProjectButton : Gtk.MenuButton { | |||
action_name = Scratch.MainWindow.ACTION_PREFIX + Scratch.MainWindow.ACTION_OPEN_FOLDER, | |||
action_target = new Variant.string (""), | |||
icon_name = "folder-open-symbolic", | |||
accel_string = Scratch.MainWindow.ACTION_OPEN_FOLDER_ACCEL |
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 like a workaround for a bug in accel label. We should probably fix the bug instead
@@ -41,8 +51,5 @@ public class Code.PopoverMenuItem : Gtk.Button { | |||
popover.popdown (); | |||
} | |||
}); | |||
|
|||
bind_property ("action-name", label, "action-name"); |
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.
Instead of removing this we should probably add an action_target property to accel label
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.
Probably, but Code is still using the Gtk3 Granite library - is this still being developed?
Coverting to draft pending changes to Granite.AccelLabel |
Fixes issues found in unreleased commit 34b0af4
There doesn't seem to be an elegant way for the chooser button to get the required accelerator from the MainWindow actiongroup so it exposed as a const string in MainWindow. If there is a better way please advise.