static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
-static void GtkMain ( vlc_object_t * );
+static void* GtkMain ( vlc_object_t * );
/*****************************************************************************
* Local variables (mutex-protected).
* this part of the interface is in a separate thread so that we can call
* gtk_main() from within it without annoying the rest of the program.
*****************************************************************************/
-static void GtkMain( vlc_object_t *p_this )
+static void* GtkMain( vlc_object_t *p_this )
{
/* gtk_init needs to know the command line. We don't care, so we
* give it an empty one */
static char **pp_args = p_args;
#endif
static int i_args = 1;
+ int canc = vlc_savecancel ();
/* FIXME: deprecated ? */
#if defined(MODULE_NAME_IS_gtk2_main) || defined(MODULE_NAME_IS_gnome2_main)
gtk_main();
gdk_threads_leave();
+ vlc_restorecancel (canc);
+ return NULL;
}