summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2018-09-21 09:26:37 -0700
committerMarcus Müller <marcus@hostalia.de>2018-09-22 00:17:59 +0200
commit0921b9a74746dc812ebe60d17ab29a82c7167598 (patch)
tree21d3165181999091efca4737c85ba1e97fa4e53a
parent267d669eb21c514c18a6ee979f5cf247d251f1ad (diff)
Give the GRC GUI a better default configuration.
-rw-r--r--grc/gui/Actions.py6
-rw-r--r--grc/gui/Config.py4
2 files changed, 6 insertions, 4 deletions
diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py
index 14b0422764..041c6490aa 100644
--- a/grc/gui/Actions.py
+++ b/grc/gui/Actions.py
@@ -455,7 +455,8 @@ TOGGLE_CONSOLE_WINDOW = actions.register("win.toggle_console_window",
label='Show _Console Panel',
tooltip='Toggle visibility of the console',
keypresses=["<Ctrl>r"],
- preference_name='console_window_visible'
+ preference_name='console_window_visible',
+ default=True
)
# TODO: Might be able to convert this to a Gio.PropertyAction eventually.
# actions would need to be defined in the correct class and not globally
@@ -463,7 +464,8 @@ TOGGLE_BLOCKS_WINDOW = actions.register("win.toggle_blocks_window",
label='Show _Block Tree Panel',
tooltip='Toggle visibility of the block tree widget',
keypresses=["<Ctrl>b"],
- preference_name='blocks_window_visible'
+ preference_name='blocks_window_visible',
+ default=True
)
TOGGLE_SCROLL_LOCK = actions.register("win.console.scroll_lock",
label='Console Scroll _Lock',
diff --git a/grc/gui/Config.py b/grc/gui/Config.py
index 6135296660..8b9bc70b92 100644
--- a/grc/gui/Config.py
+++ b/grc/gui/Config.py
@@ -134,8 +134,8 @@ class Config(CoreConfig):
def main_window_size(self, size=None):
if size is None:
size = [None, None]
- w = self.entry('main_window_width', size[0], default=1)
- h = self.entry('main_window_height', size[1], default=1)
+ w = self.entry('main_window_width', size[0], default=800)
+ h = self.entry('main_window_height', size[1], default=600)
return w, h
def file_open(self, filename=None):