diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-10-12 15:17:09 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-10-21 09:29:38 +0200 |
commit | ea3eaa5f930062fa57568c6132a5930b7399f5f7 (patch) | |
tree | 2225a7ad738151b365f06848b488515dcb0bc3a3 /grc/gui/ActionHandler.py | |
parent | 1624da7772f1ff57232e2f2024281547d483629c (diff) |
grc: respect display scaling for block positions, canvas size and props dialog
Diffstat (limited to 'grc/gui/ActionHandler.py')
-rw-r--r-- | grc/gui/ActionHandler.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/grc/gui/ActionHandler.py b/grc/gui/ActionHandler.py index f18fcea3e1..ec5ac7c574 100644 --- a/grc/gui/ActionHandler.py +++ b/grc/gui/ActionHandler.py @@ -23,7 +23,7 @@ import gtk import os import subprocess -from . import Dialogs, Preferences, Actions, Executor, Constants +from . import Dialogs, Preferences, Actions, Executor, Constants, Utils from .FileDialogs import (OpenFlowGraphFileDialog, SaveFlowGraphFileDialog, SaveConsoleFileDialog, SaveScreenShotDialog, OpenQSSFileDialog) @@ -688,8 +688,10 @@ class ActionHandler: Actions.FLOW_GRAPH_SAVE.set_sensitive(not page.get_saved()) main.update() try: #set the size of the flow graph area (if changed) - new_size = (flow_graph.get_option('window_size') or - self.platform.config.default_canvas_size) + new_size = Utils.scale( + flow_graph.get_option('window_size') or + self.platform.config.default_canvas_size + ) if flow_graph.get_size() != tuple(new_size): flow_graph.set_size(*new_size) except: pass |