CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/06/01 09:13:37
Modified files:
. : ChangeLog
gui : gui.cpp gui.h
Log message:
* gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning
from the main rendering loop. This is aimed at removing the
exit()
call, altought currently we'll still call it as the default
implementation.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3429&r2=1.3430
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.cpp?cvsroot=gnash&r1=1.78&r2=1.79
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gui.h?cvsroot=gnash&r1=1.51&r2=1.52
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3429
retrieving revision 1.3430
diff -u -b -r1.3429 -r1.3430
--- ChangeLog 31 May 2007 21:18:19 -0000 1.3429
+++ ChangeLog 1 Jun 2007 09:13:37 -0000 1.3430
@@ -1,3 +1,10 @@
+2007-06-01 Sandro Santilli <[EMAIL PROTECTED]>
+
+ * gui/gui.cpp{cpp,h}: add a quit() virtual method, for returning
+ from the main rendering loop. This is aimed at removing the exit()
+ call, altought currently we'll still call it as the default
+ implementation.
+
2007-05-31 Bastiaan Jacques <[EMAIL PROTECTED]>
* macros/ffmpeg.m4: Define HAVE_SWSCALE_H if swscale.h is present.
Index: gui/gui.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -b -r1.78 -r1.79
--- gui/gui.cpp 15 May 2007 09:30:36 -0000 1.78
+++ gui/gui.cpp 1 Jun 2007 09:13:37 -0000 1.79
@@ -162,7 +162,7 @@
Gui::menu_quit()
{
// GNASH_REPORT_FUNCTION;
- exit(0);
+ quit();
}
void
Index: gui/gui.h
===================================================================
RCS file: /sources/gnash/gnash/gui/gui.h,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- gui/gui.h 28 May 2007 15:41:00 -0000 1.51
+++ gui/gui.h 1 Jun 2007 09:13:37 -0000 1.52
@@ -101,6 +101,13 @@
/// Start main rendering loop.
virtual bool run() = 0;
+ /// End main rendering loop, making the call to run() return.
+ //
+ /// The default implementation calls exit(0), which isn't nice.
+ /// Please implement the proper main loop quitter in the subclasses.
+ ///
+ virtual void quit() { exit(0); }
+
/// Create a menu and attach it to our window.
virtual bool createMenu() = 0;
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit