diff options
Diffstat (limited to 'src/Workspacemenu.cc')
-rw-r--r-- | src/Workspacemenu.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc index 05f5072..bedb6c0 100644 --- a/src/Workspacemenu.cc +++ b/src/Workspacemenu.cc | |||
@@ -21,8 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // stupid macros needed to access some functions in version 2 of the GNU C | 24 | //use GNU extension |
25 | // library | ||
26 | #ifndef _GNU_SOURCE | 25 | #ifndef _GNU_SOURCE |
27 | #define _GNU_SOURCE | 26 | #define _GNU_SOURCE |
28 | #endif // _GNU_SOURCE | 27 | #endif // _GNU_SOURCE |
@@ -71,7 +70,7 @@ Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) { | |||
71 | } | 70 | } |
72 | 71 | ||
73 | 72 | ||
74 | void Workspacemenu::itemSelected(int button, int index) { | 73 | void Workspacemenu::itemSelected(int button, unsigned int index) { |
75 | if (button == 1) { | 74 | if (button == 1) { |
76 | if (index == 0) | 75 | if (index == 0) |
77 | screen->addWorkspace(); | 76 | screen->addWorkspace(); |