diff options
Diffstat (limited to 'src/Icon.cc')
-rw-r--r-- | src/Icon.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Icon.cc b/src/Icon.cc index 4a0a7f2..423cb60 100644 --- a/src/Icon.cc +++ b/src/Icon.cc | |||
@@ -19,8 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // stupid macros needed to access some functions in version 2 of the GNU C | 22 | //Use GNU extensions |
23 | // library | ||
24 | #ifndef _GNU_SOURCE | 23 | #ifndef _GNU_SOURCE |
25 | #define _GNU_SOURCE | 24 | #define _GNU_SOURCE |
26 | #endif // _GNU_SOURCE | 25 | #endif // _GNU_SOURCE |
@@ -50,9 +49,9 @@ Iconmenu::Iconmenu(BScreen *scrn) : Basemenu(scrn) { | |||
50 | } | 49 | } |
51 | 50 | ||
52 | 51 | ||
53 | void Iconmenu::itemSelected(int button, int index) { | 52 | void Iconmenu::itemSelected(int button, unsigned int index) { |
54 | if (button == 1) { | 53 | if (button == 1) { |
55 | if (index >= 0 && index < screen->getIconCount()) { | 54 | if (index < screen->getIconCount()) { |
56 | FluxboxWindow *win = screen->getIcon(index); | 55 | FluxboxWindow *win = screen->getIcon(index); |
57 | 56 | ||
58 | if (win) | 57 | if (win) |