From 40382f4d52d9fb9be9ed850a17a5f8fe277472ad Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 24 May 2019 15:49:51 +0200 Subject: [PATCH] Viewlib: menubar/view menu: make grid select working Set also a better icon for this menu item --- common/tool/actions.cpp | 2 +- eeschema/viewlib_frame.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index ddfca265a5..0dd239a7dd 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -217,7 +217,7 @@ TOOL_ACTION ACTIONS::toggleGrid( "common.Control.toggleGrid", TOOL_ACTION ACTIONS::gridProperties( "common.Control.gridProperties", AS_GLOBAL, 0, _( "Grid Properties..." ), _( "Set grid dimensions" ), - grid_xpm ); + grid_select_xpm ); TOOL_ACTION ACTIONS::imperialUnits( "common.Control.imperialUnits", AS_GLOBAL, 0, diff --git a/eeschema/viewlib_frame.cpp b/eeschema/viewlib_frame.cpp index 7f7e8fc9bb..a302d2631b 100644 --- a/eeschema/viewlib_frame.cpp +++ b/eeschema/viewlib_frame.cpp @@ -82,6 +82,7 @@ BEGIN_EVENT_TABLE( LIB_VIEW_FRAME, EDA_DRAW_FRAME ) // Menu (and/or hotkey) events EVT_MENU( wxID_EXIT, LIB_VIEW_FRAME::CloseLibraryViewer ) EVT_MENU( ID_SET_RELATIVE_OFFSET, LIB_VIEW_FRAME::OnSetRelativeOffset ) + EVT_MENU( ID_GRID_SETTINGS, SCH_BASE_FRAME::OnGridSettings ) EVT_UPDATE_UI( ID_LIBVIEW_DE_MORGAN_NORMAL_BUTT, LIB_VIEW_FRAME::onUpdateNormalBodyStyleButton ) EVT_UPDATE_UI( ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT, LIB_VIEW_FRAME::onUpdateAltBodyStyleButton )