/*****************************************************************************
* intf_gtk.c: Gtk+ interface
*****************************************************************************
- * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_gtk.c,v 1.26 2001/10/04 00:50:24 sam Exp $
+ * Copyright (C) 1999-2001 VideoLAN
+ * $Id: intf_gtk.c,v 1.29 2001/12/07 18:33:07 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
#include <gtk/gtk.h>
-#include "config.h"
#include "common.h"
+#include "intf_msg.h"
#include "threads.h"
#include "mtime.h"
#include "tests.h"
#include "input_ext-intf.h"
#include "interface.h"
-#include "intf_msg.h"
#include "intf_playlist.h"
#include "video.h"
#include "gtk_display.h"
#include "intf_gtk.h"
-#include "main.h"
-
#include "modules.h"
#include "modules_export.h"
}
/* Initialize Gtk+ thread */
+ p_intf->p_sys->b_playing = 1;
p_intf->p_sys->b_popup_changed = 0;
p_intf->p_sys->b_window_changed = 0;
p_intf->p_sys->b_playlist_changed = 0;
{
GtkModeManage( p_intf );
GtkSetupMenus( p_intf );
+ p_intf->p_sys->b_playing = 1;
}
/* Manage the slider */
vlc_mutex_unlock( &p_intf->p_input->stream.stream_lock );
}
- else if( !p_intf->b_die )
+ else if( p_intf->p_sys->b_playing && !p_intf->b_die )
{
GtkModeManage( p_intf );
+ p_intf->p_sys->b_playing = 0;
}
/* Manage core vlc functions through the callback */