[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk opts.c,1.47,1.48

Zoltan Ponekker pontscho at mplayerhq.hu
Sun Jan 19 19:28:19 CET 2003


Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv20107

Modified Files:
	opts.c 
Log Message:
11l:)

Index: opts.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/opts.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- opts.c	17 Jan 2003 22:39:39 -0000	1.47
+++ opts.c	19 Jan 2003 18:28:16 -0000	1.48
@@ -13,6 +13,7 @@
 #include "../../../libao2/audio_out.h"
 #include "../../../libvo/video_out.h"
 
+#include "../../app.h"
 #include "../../cfg.h"
 #include "../../interface.h"
 #include "../widgets.h"
@@ -331,9 +332,15 @@
 // --- 6. page
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPostprocess ),gtkVopPP );
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBLoadFullscreen ),gtkLoadFullscreen );
- gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPlayBar ),gtkEnablePlayBar );
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBStopXScreenSaver ),stop_xscreensaver );
  gtk_adjustment_set_value( HSPPQualityadj,auto_quality );
+
+ gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPlayBar ),gtkEnablePlayBar );
+ if ( !appMPlayer.barIsPresent )
+  {
+   gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBPlayBar ),0 );
+   gtk_widget_set_sensitive( CBPlayBar,FALSE );
+  }
 
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBCache ),0 );
  gtk_adjustment_set_value( SBCacheadj,(float)gtkCacheSize );



More information about the MPlayer-cvslog mailing list