[MPlayer-cvslog] CVS: main/libvo vo_macosx.m,1.2,1.3

Nicolas Plourde CVS syncmail at mplayerhq.hu
Mon May 2 16:40:18 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv1560/libvo

Modified Files:
	vo_macosx.m 
Log Message:
close button exit mplayer with esc key

Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vo_macosx.m	2 May 2005 01:48:37 -0000	1.2
+++ vo_macosx.m	2 May 2005 14:40:16 -0000	1.3
@@ -306,6 +306,7 @@
 								backing:NSBackingStoreBuffered
 								defer:NO];
 
+	[window setDelegate:self];
 	[window setContentView:self];
 	[window setInitialFirstResponder:self];
 	[window setAcceptsMouseMovedEvents:YES];
@@ -665,4 +666,9 @@
 {
 	return YES;
 }
- at end
\ No newline at end of file
+
+- (void)windowWillClose:(NSNotification *)aNotification
+{
+	mplayer_put_key(KEY_ESC);
+}
+ at end




More information about the MPlayer-cvslog mailing list