From d28d40d33dac481296e1f836ec57f1018041d418 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 18 Sep 2009 02:22:43 -0700 Subject: [PATCH] put the flow graph errors button into the toolbar --- grc/gui/Actions.py | 6 +++--- grc/gui/Bars.py | 1 + grc/gui/Dialogs.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/grc/gui/Actions.py b/grc/gui/Actions.py index 1cc12a81..f374efde 100644 --- a/grc/gui/Actions.py +++ b/grc/gui/Actions.py @@ -217,7 +217,7 @@ BLOCK_PASTE = Action( ) ERRORS_WINDOW_DISPLAY = Action( label='_Errors', - tooltip='Flowgraph error messages', + tooltip='View flow graph errors', stock_id=gtk.STOCK_DIALOG_ERROR, ) ABOUT_WINDOW_DISPLAY = Action( @@ -227,13 +227,13 @@ ABOUT_WINDOW_DISPLAY = Action( ) HELP_WINDOW_DISPLAY = Action( label='_Help', - tooltip='Usage Tips', + tooltip='Usage tips', stock_id=gtk.STOCK_HELP, keypresses=(gtk.keysyms.F1, NO_MODS_MASK), ) TYPES_WINDOW_DISPLAY = Action( label='_Types', - tooltip='Types Color Mapping', + tooltip='Types color mapping', stock_id=gtk.STOCK_DIALOG_INFO, ) FLOW_GRAPH_GEN = Action( diff --git a/grc/gui/Bars.py b/grc/gui/Bars.py index 17835eb0..8fd16786 100644 --- a/grc/gui/Bars.py +++ b/grc/gui/Bars.py @@ -39,6 +39,7 @@ TOOLBAR_LIST = ( Actions.FLOW_GRAPH_UNDO, Actions.FLOW_GRAPH_REDO, None, + Actions.ERRORS_WINDOW_DISPLAY, Actions.FLOW_GRAPH_GEN, Actions.FLOW_GRAPH_EXEC, Actions.FLOW_GRAPH_KILL, diff --git a/grc/gui/Dialogs.py b/grc/gui/Dialogs.py index a8e7afb0..af40f47c 100644 --- a/grc/gui/Dialogs.py +++ b/grc/gui/Dialogs.py @@ -67,7 +67,7 @@ $encode($err_msg.replace('\t', ' ')) def ErrorsDialog(flowgraph): MessageDialogHelper( type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_CLOSE, - title='Flowgraph Errors', + title='Flow Graph Errors', markup=Utils.parse_template(ERRORS_MARKUP_TMPL, errors=flowgraph.get_error_messages()), ) -- 2.47.2