Merge lp:~elementary-dev-community/pantheon-terminal/zoom-in-out into lp:~elementary-apps/pantheon-terminal/trunk

Proposed by David Gomes
Status: Merged
Merged at revision: 350
Proposed branch: lp:~elementary-dev-community/pantheon-terminal/zoom-in-out
Merge into: lp:~elementary-apps/pantheon-terminal/trunk
Diff against target: 0 lines
To merge this branch: bzr merge lp:~elementary-dev-community/pantheon-terminal/zoom-in-out
Reviewer Review Type Date Requested Status
Victor Martinez (community) Approve
Review via email: mp+124023@code.launchpad.net

Description of the change

Implemented zooming in/out of the terminal.

To post a comment you must log in.
Revision history for this message
Victor Martinez (victored) wrote :

This looks perfect to me David. It would be even better if it triggered size_increment() and size_decrement() from the scroll event while CTRL is pressed, but that's worth another branch maybe :)

review: Approve
Revision history for this message
Victor Martinez (victored) wrote :

The terminal is printing some interesting warnings:

[Gtk] Unable to parse accelerator '<Control>zero' for action 'ZoomDefault'

And this appears when CTRL + (numpad's) +/- are pressed:

[_LOG_LEVEL_WARN 13:30:33.999544] [GLib-GObject] g_object_notify: object class `PantheonTerminalTerminalWidget' has no property named `font-scale'

Could it be that libvte has this as a built-in feature tied to those keys?

review: Needs Fixing
349. By David Gomes

Implemented NUMPAD keys for zooming in/out of terminal.

Revision history for this message
David Gomes (davidgomes) wrote :

> The terminal is printing some interesting warnings:
>
> [Gtk] Unable to parse accelerator '<Control>zero' for action 'ZoomDefault'
>
>
> And this appears when CTRL + (numpad's) +/- are pressed:
>
> [_LOG_LEVEL_WARN 13:30:33.999544] [GLib-GObject] g_object_notify: object class
> `PantheonTerminalTerminalWidget' has no property named `font-scale'
>
> Could it be that libvte has this as a built-in feature tied to those keys?

I'm not getting that output, but the latest revision implements KP_Add and KP_Subtract to also zoom in/out of the terminal.

Regarding the "<Control>zero", I also tried "<Control>0" and "<Control>Zero" but none of those are working in the accel_group. Any ideas?

350. By David Gomes

Removed Ctrl-0 due to parsing error.

Revision history for this message
Victor Martinez (victored) wrote :

David, I couldn't find documentation about the "<Control>0" issue. I think it'd be more convenient to simply remove it from the code and merge the branch. Everything else works perfectly. And thank you for adding support for KP_Add and KP_Subtract. You rock!

review: Approve

Preview Diff

Empty

Subscribers

People subscribed via source and target branches