From 3598527d190af3e1f0874b6fc47fed86e19faac4 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 30 Jun 2003 15:31:54 +0000 Subject: we can now use the same action strings in the menu as in key actions --- src/Screen.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index eee6f2d..fb6d518 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.196 2003/06/27 15:05:19 rathnor Exp $ +// $Id: Screen.cc,v 1.197 2003/06/30 15:31:54 fluxgen Exp $ #include "Screen.hh" @@ -55,6 +55,7 @@ #include "FbWindow.hh" #include "Strut.hh" #include "SlitTheme.hh" +#include "CommandParser.hh" //use GNU extensions #ifndef _GNU_SOURCE @@ -1926,7 +1927,14 @@ bool BScreen::parseMenuFile(ifstream &file, FbTk::Menu &menu, int &row) { cerr<<"Row: "< command(CommandParser::instance().parseLine(line)); + if (*command != 0) + menu.insert(str_label.c_str(), command); + } } } } -- cgit v0.11.2