[MPlayer-cvslog] r38482 - in trunk/gui/dialog: about.c equalizer.c msgbox.c preferences.c skinbrowser.c
ib
subversion at mplayerhq.hu
Mon Apr 29 16:24:37 EEST 2024
Author: ib
Date: Mon Apr 29 16:24:37 2024
New Revision: 38482
Log:
Replace gtk_window_set_policy() with gtk_window_set_resizable().
gtk_window_set_policy() is deprecated and gtk_window_set_resizable()
is available in GTK+ 2.4 (the minimum requirement).
Modified:
trunk/gui/dialog/about.c
trunk/gui/dialog/equalizer.c
trunk/gui/dialog/msgbox.c
trunk/gui/dialog/preferences.c
trunk/gui/dialog/skinbrowser.c
Modified: trunk/gui/dialog/about.c
==============================================================================
--- trunk/gui/dialog/about.c Mon Apr 29 16:22:27 2024 (r38481)
+++ trunk/gui/dialog/about.c Mon Apr 29 16:24:37 2024 (r38482)
@@ -65,7 +65,7 @@ static GtkWidget * CreateAbout( void )
gtk_widget_set_size_request( About,370,425 );
gtk_window_set_title( GTK_WINDOW( About ),_(MSGTR_GUI_AboutMPlayer) );
gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( About ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( About ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( About ),"About",MPlayer );
gtk_widget_realize( About );
Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c Mon Apr 29 16:22:27 2024 (r38481)
+++ trunk/gui/dialog/equalizer.c Mon Apr 29 16:24:37 2024 (r38482)
@@ -262,7 +262,7 @@ static GtkWidget * CreateEqualizer( void
gtk_widget_set_size_request( Equalizer,-1,256 );
gtk_window_set_title( GTK_WINDOW( Equalizer ),_(MSGTR_GUI_Equalizer) );
gtk_window_set_position( GTK_WINDOW( Equalizer ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( Equalizer ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( Equalizer ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( Equalizer ),"Equalizer",MPlayer );
gtk_widget_realize( Equalizer );
@@ -592,7 +592,7 @@ GtkWidget * CreateEquConfig( void )
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_policy( GTK_WINDOW( EquConfig ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( EquConfig ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( EquConfig ),"EqualizerConfig",MPlayer );
gtk_widget_realize( EquConfig );
Modified: trunk/gui/dialog/msgbox.c
==============================================================================
--- trunk/gui/dialog/msgbox.c Mon Apr 29 16:22:27 2024 (r38481)
+++ trunk/gui/dialog/msgbox.c Mon Apr 29 16:24:37 2024 (r38482)
@@ -56,7 +56,7 @@ static GtkWidget * CreateMessageBox( voi
gtk_window_set_title( GTK_WINDOW( MessageBox ),MPlayer );
gtk_window_set_position( GTK_WINDOW( MessageBox ),GTK_WIN_POS_CENTER );
gtk_window_set_modal( GTK_WINDOW( MessageBox ),TRUE );
- gtk_window_set_policy( GTK_WINDOW( MessageBox ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( MessageBox ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( MessageBox ),"Message",MPlayer );
gtk_widget_realize( MessageBox );
Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c Mon Apr 29 16:22:27 2024 (r38481)
+++ trunk/gui/dialog/preferences.c Mon Apr 29 16:24:37 2024 (r38482)
@@ -1684,7 +1684,7 @@ static GtkWidget *CreateAudioConfig( voi
AudioConfig = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(AudioConfig), _(MSGTR_GUI_AudioDriverConfiguration));
gtk_window_set_position(GTK_WINDOW(AudioConfig), GTK_WIN_POS_CENTER);
- gtk_window_set_policy(GTK_WINDOW(AudioConfig), FALSE, FALSE, TRUE);
+ gtk_window_set_resizable(GTK_WINDOW(AudioConfig), FALSE);
gtk_window_set_wmclass(GTK_WINDOW(AudioConfig), "AudioConfig", MPlayer);
gtk_widget_realize(AudioConfig);
@@ -1879,7 +1879,7 @@ GtkWidget * CreateDXR3Config( void )
// gtk_widget_set_size_request( DXR3Config,300,156 );
gtk_window_set_title( GTK_WINDOW( DXR3Config ),"DXR3/H+" );
gtk_window_set_position( GTK_WINDOW( DXR3Config ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( DXR3Config ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( DXR3Config ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( DXR3Config ),"DXR3Config",MPlayer );
gtk_widget_realize( DXR3Config );
Modified: trunk/gui/dialog/skinbrowser.c
==============================================================================
--- trunk/gui/dialog/skinbrowser.c Mon Apr 29 16:22:27 2024 (r38481)
+++ trunk/gui/dialog/skinbrowser.c Mon Apr 29 16:24:37 2024 (r38482)
@@ -102,7 +102,7 @@ void ShowSkinBrowser( void )
gtk_container_set_border_width( GTK_CONTAINER( SkinBrowser ),1 );
gtk_window_set_title( GTK_WINDOW( SkinBrowser ),_(MSGTR_GUI_SkinBrowser) );
gtk_window_set_position( GTK_WINDOW( SkinBrowser ),GTK_WIN_POS_CENTER );
- gtk_window_set_policy( GTK_WINDOW( SkinBrowser ),FALSE,FALSE,TRUE );
+ gtk_window_set_resizable( GTK_WINDOW( SkinBrowser ),FALSE );
gtk_window_set_wmclass( GTK_WINDOW( SkinBrowser ),"SkinBrowser",MPlayer );
gtk_widget_realize( SkinBrowser );
More information about the MPlayer-cvslog
mailing list