diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-08 19:28:18 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-08-08 19:28:18 +0000 |
commit | 0577f2c47263a4317a93c753f0e09269e67c06d9 (patch) | |
tree | e826f3b8eea17dfcd4df66805bf57e5ab2f9a660 /widget.c | |
parent | e99b5a0bfdcd32ad09975aa753b507e292e61476 (diff) | |
download | lcd4linux-0577f2c47263a4317a93c753f0e09269e67c06d9.tar.gz |
[lcd4linux @ 2006-08-08 19:28:18 by reinelt]
widget type checking corrected
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@682 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget.c')
-rw-r--r-- | widget.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: widget.c,v 1.23 2006/02/21 05:50:34 reinelt Exp $ +/* $Id: widget.c,v 1.24 2006/08/08 19:28:18 reinelt Exp $ * * generic widget handling * @@ -21,6 +21,9 @@ * * * $Log: widget.c,v $ + * Revision 1.24 2006/08/08 19:28:18 reinelt + * widget type checking corrected + * * Revision 1.23 2006/02/21 05:50:34 reinelt * keypad support from Cris Maj * @@ -266,7 +269,7 @@ int widget_add(const char *name, const int type, const int layer, const int row, } /* check if widget type matches */ - if ((Class->type & type) == 0) { + if (Class->type != type) { error("widget '%s': class '%s' not applicable", name, class); free(class); return -1; |