diff options
author | rathnor <rathnor> | 2003-07-20 10:41:56 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-20 10:41:56 (GMT) |
commit | 734b99611b0937a94407df0536fcdcd7cad45d13 (patch) | |
tree | 393c6e4870a395105d48f419350875fe397935ac /src/FbTk/Menu.hh | |
parent | 1741ac072dd6516b4dcfdf6dbe9099a335c7bc7d (diff) | |
download | fluxbox-734b99611b0937a94407df0536fcdcd7cad45d13.zip fluxbox-734b99611b0937a94407df0536fcdcd7cad45d13.tar.bz2 |
fix menu redrawing, particularly so that selecting an option will update
properly upon selection, rather than subsequent movement
Diffstat (limited to 'src/FbTk/Menu.hh')
-rw-r--r-- | src/FbTk/Menu.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh index 2610ad9..9ab69b4 100644 --- a/src/FbTk/Menu.hh +++ b/src/FbTk/Menu.hh | |||
@@ -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: Menu.hh,v 1.20 2003/07/20 08:12:36 rathnor Exp $ | 25 | // $Id: Menu.hh,v 1.21 2003/07/20 10:41:56 rathnor Exp $ |
26 | 26 | ||
27 | #ifndef FBTK_MENU_HH | 27 | #ifndef FBTK_MENU_HH |
28 | #define FBTK_MENU_HH | 28 | #define FBTK_MENU_HH |
@@ -115,7 +115,7 @@ public: | |||
115 | void setLabel(const char *labelstr); | 115 | void setLabel(const char *labelstr); |
116 | /// move menu to x,y | 116 | /// move menu to x,y |
117 | void move(int x, int y); | 117 | void move(int x, int y); |
118 | void update(); | 118 | void update(int active_index = -1); |
119 | void setItemSelected(unsigned int index, bool val); | 119 | void setItemSelected(unsigned int index, bool val); |
120 | void setItemEnabled(unsigned int index, bool val); | 120 | void setItemEnabled(unsigned int index, bool val); |
121 | inline void setMinimumSublevels(int m) { menu.minsub = m; } | 121 | inline void setMinimumSublevels(int m) { menu.minsub = m; } |