changeset 6898:138a7ff52a26

- fix fuckin' locale (?:) - fix msg box layer handling
author pontscho
date Sun, 04 Aug 2002 17:24:00 +0000
parents cd630017eb83
children 4a45ce284efc
files Gui/cfg.c Gui/interface.c Gui/mplayer/gtk/mb.c Gui/mplayer/mplayer.c Gui/mplayer/widgets.c
diffstat 5 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/cfg.c	Sun Aug 04 16:27:52 2002 +0000
+++ b/Gui/cfg.c	Sun Aug 04 17:24:00 2002 +0000
@@ -8,10 +8,6 @@
 #include "../mplayer.h"
 #include "../cfgparser.h"
 
-#ifdef USE_I18N
-#include <locale.h>
-#endif
-
 #include "../../libvo/video_out.h"
 
 #include "cfg.h"
@@ -166,10 +162,6 @@
  FILE * f;
  int    i;
 
-#ifdef USE_I18N
- setlocale( LC_ALL,"" );
-#endif
-
 // -- save configuration 
  if ( (f=fopen( cfg,"wt+" )) )
   {
--- a/Gui/interface.c	Sun Aug 04 16:27:52 2002 +0000
+++ b/Gui/interface.c	Sun Aug 04 17:24:00 2002 +0000
@@ -79,11 +79,18 @@
 void guiInit( void )
 {
  memset( &guiIntfStruct,0,sizeof( guiIntfStruct ) );
+ guiIntfStruct.Balance=50.0f;
+ guiIntfStruct.StreamType=-1;
+
  memset( &gtkEquChannels,0,sizeof( gtkEquChannels ) );
  gtkAOOSSMixer=strdup( PATH_DEV_MIXER );
  gtkAOOSSDevice=strdup( PATH_DEV_DSP );
-// cfg_read(); // !!! moved to Gui/mplayer/mplayer.c::mplInit() after gtkInit()
+   
+ gtkInit();
+    
+ cfg_read(); 
  appInit( (void*)mDisplay );
+       
  if ( plCurrent && !filename ) mplSetFileName( plCurrent->path,plCurrent->name );
 #if defined( USE_OSD ) || defined( USE_SUB )
  guiLoadFont();
--- a/Gui/mplayer/gtk/mb.c	Sun Aug 04 16:27:52 2002 +0000
+++ b/Gui/mplayer/gtk/mb.c	Sun Aug 04 17:24:00 2002 +0000
@@ -16,9 +16,8 @@
 
 void ShowMessageBox( char * msg )
 {
- if ( gtkVMessageBox ) gtkActive( MessageBox );
-   else MessageBox=create_MessageBox( 0 );
- gtkSetLayer( MessageBox );
+ if ( gtkVMessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); }
+ MessageBox=create_MessageBox( 0 );
  if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 );
  gtkIncVisible();
 }
--- a/Gui/mplayer/mplayer.c	Sun Aug 04 16:27:52 2002 +0000
+++ b/Gui/mplayer/mplayer.c	Sun Aug 04 17:24:00 2002 +0000
@@ -45,6 +45,7 @@
 {
  int i;
 
+#if 0
  // init fields of this struct to default values
  guiIntfStruct.Balance=50.0f;
  guiIntfStruct.StreamType=-1;
@@ -53,6 +54,7 @@
 
  // read gui.conf, gui.pl
  cfg_read();
+#endif 
 
  // opens X display, checks for extensions (XShape, DGA etc)
  wsXInit( disp );
@@ -113,7 +115,7 @@
  if ( !appMPlayer.mainDecoration ) wsWindowDecoration( &appMPlayer.mainWindow,0 );
  
  wsVisibleWindow( &appMPlayer.mainWindow,wsShowWindow );
-#if 0
+#if 1
  wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
 
  {
--- a/Gui/mplayer/widgets.c	Sun Aug 04 16:27:52 2002 +0000
+++ b/Gui/mplayer/widgets.c	Sun Aug 04 17:24:00 2002 +0000
@@ -148,6 +148,7 @@
   }
  gtk_widget_show( MessageBox );
  gtkSetLayer( MessageBox );
+ gtkActive( MessageBox );
  if ( type == GTK_MB_FATAL )
   while ( gtkVMessageBox ) gtk_main_iteration_do( 0 );
 }