Skip to content

Commit

Permalink
fix issue Guake#1747
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianCelora committed Feb 25, 2022
1 parent bf4b85f commit be570b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions guake/guake_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ def load_schema():
self.notebook_manager.set_workspace(0)
self.set_tab_position()

# store the font scale index
self.scale_index = 0

# check and set ARGB for real transparency
self.update_visual()
self.window.get_screen().connect("composited-changed", self.update_visual)
Expand Down Expand Up @@ -934,11 +937,13 @@ def accel_reset_terminal(self, *args):

def accel_zoom_in(self, *args):
"""Callback to zoom in."""
self.scale_index += 1
for term in self.get_notebook().iter_terminals():
term.increase_font_size()
return True

def accel_zoom_out(self, *args):
self.scale_index -= 1
"""Callback to zoom out."""
for term in self.get_notebook().iter_terminals():
term.decrease_font_size()
Expand Down
2 changes: 1 addition & 1 deletion guake/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def browse_link_under_cursor(self):

def set_font(self, font):
self.font = font
self.set_font_scale_index(0)
self.set_font_scale_index(self.guake.scale_index)

def set_font_scale_index(self, scale_index):
self.font_scale_index = clamp(scale_index, -6, 12)
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/bugfix-9eef9bb673862b57.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
release_summary: >
Bugfix issue #1747. Splitting terminal should not reset font size
fixes:
- |
broken feature has been fixed #1747

0 comments on commit be570b9

Please sign in to comment.