# HG changeset patch # User ib # Date 1364520062 0 # Node ID 4a5fcdaf31ffdeaee75b67d46f27eb030b380543 # Parent 249207676edf397d06f4f1ca3599fe5cf13054ef Make create_MessageBox() static. It only has file scope. In order to do so, relocate some other static functions. diff -r 249207676edf -r 4a5fcdaf31ff gui/dialog/msgbox.c --- a/gui/dialog/msgbox.c Fri Mar 29 01:17:42 2013 +0000 +++ b/gui/dialog/msgbox.c Fri Mar 29 01:21:02 2013 +0000 @@ -31,13 +31,6 @@ GtkWidget * gtkMessageBoxText; GtkWidget * MessageBox = NULL; -void ShowMessageBox( const char * msg ) -{ - if ( MessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } - MessageBox=create_MessageBox(); - if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); -} - static void on_Ok_released( GtkButton * button,gpointer user_data ) { gtk_widget_hide( MessageBox ); @@ -45,7 +38,7 @@ MessageBox=NULL; } -GtkWidget * create_MessageBox( void ) +static GtkWidget * create_MessageBox( void ) { GtkWidget * vbox1; GtkWidget * hbox1; @@ -113,3 +106,10 @@ return MessageBox; } + +void ShowMessageBox( const char * msg ) +{ + if ( MessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } + MessageBox=create_MessageBox(); + if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); +} diff -r 249207676edf -r 4a5fcdaf31ff gui/dialog/msgbox.h --- a/gui/dialog/msgbox.h Fri Mar 29 01:17:42 2013 +0000 +++ b/gui/dialog/msgbox.h Fri Mar 29 01:21:02 2013 +0000 @@ -23,7 +23,6 @@ extern GtkWidget * MessageBox; -GtkWidget * create_MessageBox( void ); void ShowMessageBox( const char * msg ); #endif /* MPLAYER_GUI_MSGBOX_H */