search for: already_quit

Displaying 2 results from an estimated 2 matches for "already_quit".

2007 Aug 22
0
3 commits - libswfdec/swfdec_sprite_movie.c player/swfplay.c
...c index 996deb2..7521acf 100644 --- a/player/swfplay.c +++ b/player/swfplay.c @@ -62,7 +62,11 @@ static void do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window) { if (g_str_equal (command, "quit")) { - gtk_main_quit (); + static gboolean already_quit = FALSE; + if (!already_quit) { + gtk_main_quit (); + already_quit = TRUE; + } } /* FIXME: add more */ } diff-tree b822fe6102c568328608dcce05a412c848005f88 (from c5efffeed0afc0e64f4d01a4323c9137189bf41f) Author: Benjamin Otte <otte at gnome.org> Date: Wed Aug 22 14:16...
2007 Aug 24
0
2 commits - player/swfplay.c
...tatic GMainLoop *loop = NULL; + static void set_title (GtkWindow *window, const char *filename) { @@ -62,11 +64,8 @@ static void do_fscommand (SwfdecPlayer *player, const char *command, const char *value, gpointer window) { if (g_str_equal (command, "quit")) { - static gboolean already_quit = FALSE; - if (!already_quit) { - gtk_main_quit (); - already_quit = TRUE; - } + g_assert (loop); + g_main_loop_quit (loop); } /* FIXME: add more */ } @@ -150,6 +149,7 @@ main (int argc, char *argv[]) g_object_unref (loader); return 1; } + loop = g_main_lo...