-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Gtk4 prep - Move zoom actions to MainWindow #786
Conversation
For Gtk4, the idea was to use In the SettingsPopover, you can use a GLib.SignalGroup to connect the buttons to the |
@Marukesu This is mainly to decrease the diff between the Gtk3 and Gtk4 versions by using code that works in both. After the initial port then the Gtk4 version can be improved to use unique features of Gtk4. However, it may not be worth having the intermediate step in this case? |
@danirabbit Do you recommend going straight to using |
@jeremypw I'm not actually familiar with |
@jeremypw Me neither but it looks like you can move a set of signal bindings in one instance of a class to another instance in one go. Could be useful - otherwise you would have to bind to each terminal separately if you were to use signals instead of an action. |
Since neither of us are familiar with the new method, let's move forward with this way and then we can revisit it in the future |
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.
For some reason accelerators aren't working correctly here. Keypad accels work, but Ctrl + and Ctrl - do not
@danirabbit Just realized there is a much easier way to do this! I forgot that SettingsPopover already has a reference to the current terminal via its terminal_binding_group so we can just call its functions directly. I'll close this and propose a better PR. |
Having the zoom actions in TerminalWidget does not work in Gtk4 as it is not an ancestor of SettingsPopover which needs to use them.