From 69de035e80e1dee6c5328850375826d36cb2886c Mon Sep 17 00:00:00 2001 From: pontscho Date: Tue, 3 Feb 2004 19:02:45 +0000 Subject: =?UTF-8?q?'video=20window=20vanishes=20after=20pause'=20bugfix,?= =?UTF-8?q?=20based=20on=20Andr=C3=A9=20K=C3=BChne's=20(andre.kuehne@gmx.n?= =?UTF-8?q?et)=20bugreport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11919 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/gtk/opts.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Gui/mplayer') diff --git a/Gui/mplayer/gtk/opts.c b/Gui/mplayer/gtk/opts.c index c3c544218e..0e5ee5dce4 100644 --- a/Gui/mplayer/gtk/opts.c +++ b/Gui/mplayer/gtk/opts.c @@ -688,6 +688,7 @@ static gboolean prHScaler( GtkWidget * widget,GdkEventMotion * event,gpointer u static void prToggled( GtkToggleButton * togglebutton,gpointer user_data ) { + int window; switch ( (int)user_data ) { case 0: // extra stereo coefficient @@ -707,9 +708,11 @@ static void prToggled( GtkToggleButton * togglebutton,gpointer user_data ) } if ( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( CBShowVideoWindow ) ) ) { - wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow ); + window=wsShowWindow; gtkActive( Preferences ); - } else wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); + } else window=wsHideWindow; + + if ( !guiIntfStruct.Playing ) wsVisibleWindow( &appMPlayer.subWindow,window ); break; case 4: case 5: -- cgit v1.2.3