* tests/test-unproject.c (on_event):
authorNeil Roberts <neil@openedhand.com>
Mon, 22 Sep 2008 13:33:19 +0000 (13:33 +0000)
committerNeil Roberts <neil@openedhand.com>
Mon, 22 Sep 2008 13:33:19 +0000 (13:33 +0000)
* tests/test-project.c (on_event): Use a return value for the
'event' signal handler, otherwise it might accidentally return
TRUE for unhandled events and you won't be able to close the
window.

ChangeLog
tests/test-project.c
tests/test-unproject.c

index 363da56..0b89dd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-22  Neil Roberts  <neil@linux.intel.com>
+
+       * tests/test-unproject.c (on_event): 
+       * tests/test-project.c (on_event): Use a return value for the
+       'event' signal handler, otherwise it might accidentally return
+       TRUE for unhandled events and you won't be able to close the
+       window.
+
 2008-09-19  Emmanuele Bassi  <ebassi@linux.intel.com>
 
        Bug 1033 - Manually parsing command line options prevents
index 1ad01e8..d0c16ed 100644 (file)
@@ -93,8 +93,7 @@ find_handle_index (ClutterActor * a)
     return -1;
 }
 
-
-void 
+gboolean
 on_event (ClutterStage *stage,
          ClutterEvent *event,
          gpointer      user_data)
@@ -198,6 +197,8 @@ on_event (ClutterStage *stage,
     default:
       break;
     }
+
+  return FALSE;
 }
 
 
index 5128e11..617ea60 100644 (file)
@@ -11,7 +11,7 @@ ClutterActor *label;
 #define RECT_W 320
 #define RECT_H 240
 
-void
+gboolean
 on_event (ClutterStage *stage,
          ClutterEvent *event,
          gpointer      user_data)
@@ -63,6 +63,8 @@ on_event (ClutterStage *stage,
     default:
       break;
     }
+
+  return FALSE;
 }