CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/12/18 15:02:24
Modified files: . : ChangeLog gui : gtk.cpp Log message: Drop the annoying FPS-based delay on start. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5206&r2=1.5207 http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.123&r2=1.124 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.5206 retrieving revision 1.5207 diff -u -b -r1.5206 -r1.5207 --- ChangeLog 18 Dec 2007 12:34:45 -0000 1.5206 +++ ChangeLog 18 Dec 2007 15:02:23 -0000 1.5207 @@ -1,3 +1,9 @@ +2007-12-18 Sandro Santilli <[EMAIL PROTECTED]> + + * gui/gtk.cpp (run): set interval timeout here rather then on + set_interval, and advance once before that. This drops the + annoying FPS-based delay on start. + 2007-12-18 Udo Giacomozzi <[EMAIL PROTECTED]> * server/impl.cpp: limit media library size to 8 entries and keep Index: gui/gtk.cpp =================================================================== RCS file: /sources/gnash/gnash/gui/gtk.cpp,v retrieving revision 1.123 retrieving revision 1.124 diff -u -b -r1.123 -r1.124 --- gui/gtk.cpp 17 Dec 2007 09:32:39 -0000 1.123 +++ gui/gtk.cpp 18 Dec 2007 15:02:24 -0000 1.124 @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // -/* $Id: gtk.cpp,v 1.123 2007/12/17 09:32:39 strk Exp $ */ +/* $Id: gtk.cpp,v 1.124 2007/12/18 15:02:24 strk Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -482,6 +482,15 @@ GtkGui::setInterval(unsigned int interval) { _interval = interval; +} + +bool +GtkGui::run() +{ + //GNASH_REPORT_FUNCTION; + + // Kick-start before setting the interval timeout + advance_movie(this); // From http://www.idt.mdh.se/kurser/cd5040/ht02/gtk/glib/glib-the-main-event-loop.html#G-TIMEOUT-ADD-FULL // @@ -494,14 +503,9 @@ // // TODO: this is not what we need here, we want instead to 'catch up' !! // - g_timeout_add_full (G_PRIORITY_LOW, interval, (GSourceFunc)advance_movie, + g_timeout_add_full (G_PRIORITY_LOW, _interval, (GSourceFunc)advance_movie, this, NULL); -} -bool -GtkGui::run() -{ - //GNASH_REPORT_FUNCTION; gtk_main(); return true; } _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit