* 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.
This commit is contained in:
Neil Roberts 2008-09-22 13:33:19 +00:00
parent 77b1388d1c
commit 21c1986a41
3 changed files with 14 additions and 3 deletions

View File

@ -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> 2008-09-19 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1033 - Manually parsing command line options prevents Bug 1033 - Manually parsing command line options prevents

View File

@ -93,8 +93,7 @@ find_handle_index (ClutterActor * a)
return -1; return -1;
} }
gboolean
void
on_event (ClutterStage *stage, on_event (ClutterStage *stage,
ClutterEvent *event, ClutterEvent *event,
gpointer user_data) gpointer user_data)
@ -198,6 +197,8 @@ on_event (ClutterStage *stage,
default: default:
break; break;
} }
return FALSE;
} }

View File

@ -11,7 +11,7 @@ ClutterActor *label;
#define RECT_W 320 #define RECT_W 320
#define RECT_H 240 #define RECT_H 240
void gboolean
on_event (ClutterStage *stage, on_event (ClutterStage *stage,
ClutterEvent *event, ClutterEvent *event,
gpointer user_data) gpointer user_data)
@ -63,6 +63,8 @@ on_event (ClutterStage *stage,
default: default:
break; break;
} }
return FALSE;
} }