diff options
author | rathnor <rathnor> | 2003-04-26 14:36:21 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-04-26 14:36:21 (GMT) |
commit | b2c53bf3a1c7e03d54b78b66c8fc766262a5c752 (patch) | |
tree | 3d459a2500b99781c82d5e5cb3bff044db53612f | |
parent | 872ba855943de8d522337295fab9fb5d6d413c48 (diff) | |
download | fluxbox-b2c53bf3a1c7e03d54b78b66c8fc766262a5c752.zip fluxbox-b2c53bf3a1c7e03d54b78b66c8fc766262a5c752.tar.bz2 |
fix bug where it wouldn't add remember menu
-rw-r--r-- | src/Remember.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index 05e397e..9783c17 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Remember.cc,v 1.6 2003/04/26 13:47:53 rathnor Exp $ | 23 | // $Id: Remember.cc,v 1.7 2003/04/26 14:36:21 rathnor Exp $ |
24 | 24 | ||
25 | #include "Remember.hh" | 25 | #include "Remember.hh" |
26 | #include "StringUtil.hh" | 26 | #include "StringUtil.hh" |
@@ -537,6 +537,14 @@ void Remember::forgetAttrib(WinClient &winclient, Attribute attrib) { | |||
537 | void Remember::setupWindow(FluxboxWindow &win) { | 537 | void Remember::setupWindow(FluxboxWindow &win) { |
538 | WinClient &winclient = win.winClient(); | 538 | WinClient &winclient = win.winClient(); |
539 | 539 | ||
540 | // add the menu, this -2 is somewhat dodgy... :-/ | ||
541 | // All windows get the remember menu. | ||
542 | // TODO: nls | ||
543 | win.getWindowmenu().insert("Remember...", | ||
544 | createRememberMenu(*this, win), | ||
545 | win.getWindowmenu().numberOfItems()-2); | ||
546 | win.getWindowmenu().update(); | ||
547 | |||
540 | // we don't touch the window if it is a transient | 548 | // we don't touch the window if it is a transient |
541 | // of something else | 549 | // of something else |
542 | if (winclient.transientFor()) | 550 | if (winclient.transientFor()) |
@@ -581,12 +589,6 @@ void Remember::setupWindow(FluxboxWindow &win) { | |||
581 | if (app->layer_remember) | 589 | if (app->layer_remember) |
582 | win.moveToLayer(app->layer); | 590 | win.moveToLayer(app->layer); |
583 | 591 | ||
584 | // add the menu, this -2 is somewhat dodgy... :-/ | ||
585 | // TODO: nls | ||
586 | win.getWindowmenu().insert("Remember...", | ||
587 | createRememberMenu(*this, win), | ||
588 | win.getWindowmenu().numberOfItems()-2); | ||
589 | win.getWindowmenu().update(); | ||
590 | } | 592 | } |
591 | 593 | ||
592 | void Remember::updateWindowClose(FluxboxWindow &win) { | 594 | void Remember::updateWindowClose(FluxboxWindow &win) { |