diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/Menu.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
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 2f37234..4ebab83 100644 --- a/src/FbTk/Menu.hh +++ b/src/FbTk/Menu.hh | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | namespace FbTk { | 39 | namespace FbTk { |
40 | 40 | ||
41 | class Command; | 41 | class Command<class T>; |
42 | class MenuItem; | 42 | class MenuItem; |
43 | class ImageControl; | 43 | class ImageControl; |
44 | class RefCount<class T>; | 44 | class RefCount<class T>; |
@@ -63,7 +63,7 @@ public: | |||
63 | */ | 63 | */ |
64 | //@{ | 64 | //@{ |
65 | /// add a menu item with a label and a command | 65 | /// add a menu item with a label and a command |
66 | int insert(const FbString &label, RefCount<Command> &cmd, int pos=-1); | 66 | int insert(const FbString &label, RefCount<Command<void> > &cmd, int pos=-1); |
67 | /// add empty menu item | 67 | /// add empty menu item |
68 | int insert(const FbString &label, int pos=-1); | 68 | int insert(const FbString &label, int pos=-1); |
69 | /// add submenu | 69 | /// add submenu |