1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

Little cleanup action.

This commit is contained in:
Jean-Paul Saman 2002-09-04 21:18:29 +00:00
parent b85c7e1eb3
commit 7b7ebdeeae

View File

@ -2,7 +2,7 @@
* callbacks.c : Callbacks for the Familiar Linux Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: callbacks.c,v 1.8 2002/08/25 20:44:40 jpsaman Exp $
* $Id: callbacks.c,v 1.9 2002/09/04 21:18:29 jpsaman Exp $
*
* Authors: Jean-Paul Saman <jpsaman@wxs.nl>
*
@ -98,8 +98,6 @@ static void MediaURLOpenChanged( GtkWidget *widget, gchar *psz_url )
g_print( "%s\n",psz_url );
// Add p_url to playlist .... but how ?
if (p_intf)
{
p_playlist = (playlist_t *)
vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist )
@ -109,7 +107,6 @@ static void MediaURLOpenChanged( GtkWidget *widget, gchar *psz_url )
vlc_object_release( p_playlist );
}
}
}
/*****************************************************************
* Read directory helper function.
@ -243,8 +240,6 @@ on_toolbar_open_clicked (GtkButton *button,
{
intf_thread_t *p_intf = GtkGetIntf( button );
if (p_intf)
{
/* Testing routine */
/*
GtkCList *clistmedia = NULL;
@ -258,7 +253,6 @@ on_toolbar_open_clicked (GtkButton *button,
gtk_widget_show( GTK_WIDGET(p_intf->p_sys->p_notebook) );
gdk_window_raise( p_intf->p_sys->p_window->window );
}
}
void
@ -266,11 +260,10 @@ on_toolbar_preferences_clicked (GtkButton *button,
gpointer user_data)
{
intf_thread_t *p_intf = GtkGetIntf( button );
if (p_intf) {
gtk_widget_show( GTK_WIDGET(p_intf->p_sys->p_notebook) );
gdk_window_raise( p_intf->p_sys->p_window->window );
}
}
void
@ -279,14 +272,11 @@ on_toolbar_rewind_clicked (GtkButton *button,
{
intf_thread_t * p_intf = GtkGetIntf( button );
if( p_intf )
{
if( p_intf->p_sys->p_input )
{
input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_SLOWER );
}
}
}
void
@ -295,14 +285,11 @@ on_toolbar_pause_clicked (GtkButton *button,
{
intf_thread_t * p_intf = GtkGetIntf( button );
if( p_intf )
{
if( p_intf->p_sys->p_input )
{
input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_PAUSE );
}
}
}
void
@ -313,12 +300,9 @@ on_toolbar_play_clicked (GtkButton *button,
playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( p_playlist == NULL )
{
if( p_intf )
{
gtk_widget_show( GTK_WIDGET(p_intf->p_sys->p_notebook) );
gdk_window_raise( p_intf->p_sys->p_window->window );
}
/* Display open page */
}
@ -362,14 +346,11 @@ on_toolbar_forward_clicked (GtkButton *button,
{
intf_thread_t * p_intf = GtkGetIntf( button );
if( p_intf )
{
if( p_intf->p_sys->p_input )
{
input_SetStatus( p_intf->p_sys->p_input, INPUT_STATUS_FASTER );
}
}
}
void
@ -377,8 +358,8 @@ on_toolbar_about_clicked (GtkButton *button,
gpointer user_data)
{
intf_thread_t *p_intf = GtkGetIntf( button );
if (p_intf)
{// Toggle notebook
// Toggle notebook
if (p_intf->p_sys->p_notebook)
{
/* if ( gtk_get_data( GTK_WIDGET(p_intf->p_sys->p_notebook), "visible" ) )
@ -388,7 +369,6 @@ on_toolbar_about_clicked (GtkButton *button,
}
gdk_window_raise( p_intf->p_sys->p_window->window );
}
}
void
@ -398,15 +378,12 @@ on_comboURL_entry_changed (GtkEditable *editable,
intf_thread_t * p_intf = GtkGetIntf( editable );
gchar * psz_url;
if (p_intf)
{
if (p_intf->p_sys->b_autoplayfile == 1)
{
psz_url = gtk_entry_get_text(GTK_ENTRY(editable));
MediaURLOpenChanged( GTK_WIDGET(editable), psz_url );
}
}
}
void
on_clistmedia_click_column (GtkCList *clist,
@ -463,14 +440,11 @@ on_cbautoplay_toggled (GtkToggleButton *togglebutton,
{
intf_thread_t * p_intf = GtkGetIntf( togglebutton );
if (p_intf)
{
if (p_intf->p_sys->b_autoplayfile == 1)
p_intf->p_sys->b_autoplayfile = 0;
else
p_intf->p_sys->b_autoplayfile = 1;
}
}
gboolean