diff options
author | rathnor <rathnor> | 2003-06-08 13:47:30 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-06-08 13:47:30 (GMT) |
commit | 93b2f8921c70e2cf5f2f2c3cf79943de54b6709b (patch) | |
tree | 9291b92cf9feb4f7647cdc8a88fd9af44c050450 /src/Screen.cc | |
parent | efe8bf4acd913a48ba08c4fa390297da27d17590 (diff) | |
download | fluxbox_pavel-93b2f8921c70e2cf5f2f2c3cf79943de54b6709b.zip fluxbox_pavel-93b2f8921c70e2cf5f2f2c3cf79943de54b6709b.tar.bz2 |
fix restart in menu to accept and use an argument
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 1182dba..3ecb077 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Screen.cc,v 1.178 2003/05/24 13:13:22 rathnor Exp $ | 25 | // $Id: Screen.cc,v 1.179 2003/06/08 13:47:30 rathnor Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -1891,7 +1891,7 @@ void BScreen::initMenu() { | |||
1891 | } | 1891 | } |
1892 | 1892 | ||
1893 | if (defaultMenu) { | 1893 | if (defaultMenu) { |
1894 | FbTk::RefCount<FbTk::Command> restart_fb(new FbCommands::RestartFluxboxCmd()); | 1894 | FbTk::RefCount<FbTk::Command> restart_fb(new FbCommands::RestartFluxboxCmd("")); |
1895 | FbTk::RefCount<FbTk::Command> exit_fb(new FbCommands::ExitFluxboxCmd()); | 1895 | FbTk::RefCount<FbTk::Command> exit_fb(new FbCommands::ExitFluxboxCmd()); |
1896 | FbTk::RefCount<FbTk::Command> execute_xterm(new FbCommands::ExecuteCmd("xterm", screenNumber())); | 1896 | FbTk::RefCount<FbTk::Command> execute_xterm(new FbCommands::ExecuteCmd("xterm", screenNumber())); |
1897 | m_rootmenu->setInternalMenu(); | 1897 | m_rootmenu->setInternalMenu(); |
@@ -2098,7 +2098,7 @@ bool BScreen::parseMenuFile(ifstream &file, FbTk::Menu &menu, int &row) { | |||
2098 | "no menu label defined\n")); | 2098 | "no menu label defined\n")); |
2099 | cerr<<"Row: "<<row<<endl; | 2099 | cerr<<"Row: "<<row<<endl; |
2100 | } else { | 2100 | } else { |
2101 | FbTk::RefCount<FbTk::Command> restart_fb(new FbCommands::RestartFluxboxCmd()); | 2101 | FbTk::RefCount<FbTk::Command> restart_fb(new FbCommands::RestartFluxboxCmd(str_cmd)); |
2102 | menu.insert(str_label.c_str(), restart_fb); | 2102 | menu.insert(str_label.c_str(), restart_fb); |
2103 | } | 2103 | } |
2104 | } // end of restart | 2104 | } // end of restart |