aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gui/mplayer/gtk/opts.c
diff options
context:
space:
mode:
authorGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-03 19:02:45 +0000
committerGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-03 19:02:45 +0000
commit69de035e80e1dee6c5328850375826d36cb2886c (patch)
treef76153bcd7adea870b7ecbeb929a4c827fcae95b /Gui/mplayer/gtk/opts.c
parentba784a31bb49bf369a348b3a1bdcd2e4c9e97642 (diff)
'video window vanishes after pause' bugfix, based on André Kühne's (andre.kuehne@gmx.net) bugreport
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11919 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/gtk/opts.c')
-rw-r--r--Gui/mplayer/gtk/opts.c7
1 files changed, 5 insertions, 2 deletions
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: