diff template/dw.c @ 986:87dc0f5f96d0

Fix return type of dw_listbox_selected() to be "int" instead of "unsigned int" to allow -1 return. Changed return values of a number of functions to be consistent across platforms and use the defines.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 05:14:06 +0000
parents cfc0777aceb5
children 297f2e790e57
line wrap: on
line diff
--- a/template/dw.c	Sat May 07 02:15:50 2011 +0000
+++ b/template/dw.c	Sat May 07 05:14:06 2011 +0000
@@ -1208,7 +1208,7 @@
  * Returns:
  *       The selected item index or DW_ERROR_UNKNOWN (-1) on error.
  */
-unsigned int API dw_listbox_selected(HWND handle)
+int API dw_listbox_selected(HWND handle)
 {
     return DW_ERROR_UNKNOWN;
 }
@@ -3165,10 +3165,12 @@
  *       eve: The handle to the event returned by dw_event_new().
  * Returns:
  *       DW_ERROR_NONE (0) on success.
+ *       DW_ERROR_TIMEOUT (2) if the timeout has expired.
+ *       Other values on other error.
  */
 int dw_event_wait(HEV eve, unsigned long timeout)
 {
-   return DW_ERROR_GENERAL;
+   return DW_ERROR_GENERAL
 }
 
 /*