[MPlayer-cvslog] r38545 - trunk/gui/dialog/equalizer.c

ib subversion at mplayerhq.hu
Sun Jun 9 14:14:46 EEST 2024


Author: ib
Date: Sun Jun  9 14:14:46 2024
New Revision: 38545

Log:
Do not make the equalizer configuration dialog modal.

While it exists, show or hide it whenever the configure button is
shown or hidden.

Modified:
   trunk/gui/dialog/equalizer.c

Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c	Sun Jun  9 14:11:28 2024	(r38544)
+++ trunk/gui/dialog/equalizer.c	Sun Jun  9 14:14:46 2024	(r38545)
@@ -244,8 +244,18 @@ static void eqNotebook( GtkNotebook * no
  (void) page;
  (void) user_data;
 
- if ( page_num ) gtk_widget_hide( Config );
-   else gtk_widget_show( Config );
+  if (page_num)
+  {
+    gtk_widget_hide(Config);
+
+    if (EquConfig) gtk_widget_hide(EquConfig);
+  }
+  else
+  {
+    gtk_widget_show(Config);
+
+    if (EquConfig) gtk_widget_show(EquConfig);
+  }
 }
 
 static GtkWidget * CreateEqualizer( void )
@@ -592,7 +602,6 @@ GtkWidget * CreateEquConfig( void )
   gtk_widget_set_size_request( EquConfig,350,260 );
   gtk_window_set_title( GTK_WINDOW( EquConfig ),_(MSGTR_GUI_EqualizerConfiguration) );
   gtk_window_set_position( GTK_WINDOW( EquConfig ),GTK_WIN_POS_CENTER );
-//  gtk_window_set_modal( GTK_WINDOW( EquConfig ),TRUE );
   gtk_window_set_resizable( GTK_WINDOW( EquConfig ),FALSE );
   gtk_window_set_wmclass( GTK_WINDOW( EquConfig ),"EqualizerConfig",MPlayer );
 


More information about the MPlayer-cvslog mailing list