/*****************************************************************************
* intf_gnome.c: Gnome interface
*****************************************************************************
- * Copyright (C) 1999, 2000 VideoLAN
- * $Id: intf_gnome.c,v 1.2 2001/05/30 17:03:12 sam Exp $
+ * Copyright (C) 1999-2001 VideoLAN
+ * $Id: intf_gnome.c,v 1.7.2.1 2001/12/29 23:35:10 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stéphane Borel <stef@via.ecp.fr>
#include <gnome.h>
-#include "config.h"
#include "common.h"
+#include "intf_msg.h"
#include "threads.h"
#include "mtime.h"
#include "tests.h"
#include "stream_control.h"
#include "input_ext-intf.h"
-#include "intf_msg.h"
#include "interface.h"
#include "intf_playlist.h"
#include "gtk_display.h"
#include "intf_gtk.h"
-#include "main.h"
-
#include "modules.h"
#include "modules_export.h"
return( 200 );
}
+#ifndef WIN32
+ if( getenv( "DISPLAY" ) == NULL )
+ {
+ return( 15 );
+ }
+#endif
+
return( 100 );
}
}
/* Initialize Gnome 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;
/* The data types we are allowed to receive */
static GtkTargetEntry target_table[] =
{
+ { "STRING", 0, DROP_ACCEPT_STRING },
{ "text/uri-list", 0, DROP_ACCEPT_TEXT_URI_LIST },
{ "text/plain", 0, DROP_ACCEPT_TEXT_PLAIN }
};
if( p_intf->p_input->stream.b_changed )
{
GtkModeManage( p_intf );
+ GtkSetupMenus( p_intf );
+ p_intf->p_sys->b_playing = 1;
}
/* Manage the slider */
}
#undef p_area
}
- vlc_mutex_unlock( &p_intf->p_input->stream.stream_lock );
if( p_intf->p_sys->i_part !=
p_intf->p_input->stream.p_selected_area->i_part )
GtkSetupMenus( p_intf );
}
+ 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 */