aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-05-12 00:22:40 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-05-12 00:22:40 (GMT)
commit93b0c5322a7482d83e38657b36e9814f8415e47b (patch)
tree0e7bfe2e975e0b9bd88334975c691e98513c1c14 /src/FbCommands.cc
parent72a45fae3c39323206e7d19913bb3ab17a691691 (diff)
downloadfluxbox_pavel-93b0c5322a7482d83e38657b36e9814f8415e47b.zip
fluxbox_pavel-93b0c5322a7482d83e38657b36e9814f8415e47b.tar.bz2
refactor menu reloading, added FbTk::AutoReloadHelper
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 4eabae2..3a09b69 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -73,11 +73,11 @@ namespace {
73 73
74void showMenu(const BScreen &screen, FbTk::Menu &menu) { 74void showMenu(const BScreen &screen, FbTk::Menu &menu) {
75 75
76 // special case for root menu 76 // check if menu has changed
77 if (&menu == &screen.rootMenu()) { 77 if (typeid(menu) == typeid(FbMenu)) {
78 Fluxbox* fb = Fluxbox::instance(); 78 FbMenu *fbmenu = static_cast<FbMenu *>(&menu);
79 if(fb->menuTimestampsChanged()) 79 if (fbmenu->reloadHelper())
80 fb->rereadMenu(); 80 fbmenu->reloadHelper()->checkReload();
81 } 81 }
82 82
83 Window root_ret; // not used 83 Window root_ret; // not used