aboutsummaryrefslogtreecommitdiff
path: root/src/Icon.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-04-03 12:08:54 (GMT)
committerfluxgen <fluxgen>2002-04-03 12:08:54 (GMT)
commit05761f6059fb1dc12f6922b06c297b5f10780a05 (patch)
tree66f0ffb5067833b5f4c641c8e58da6ecb6035621 /src/Icon.cc
parent968f9b5d8e0397bd812ce41073a317eb20fdf9df (diff)
downloadfluxbox_pavel-05761f6059fb1dc12f6922b06c297b5f10780a05.zip
fluxbox_pavel-05761f6059fb1dc12f6922b06c297b5f10780a05.tar.bz2
Fixed some signed/unsigned warnings
Diffstat (limited to 'src/Icon.cc')
-rw-r--r--src/Icon.cc7
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
53void Iconmenu::itemSelected(int button, int index) { 52void 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)