changeset 35991:4a5fcdaf31ff

Make create_MessageBox() static. It only has file scope. In order to do so, relocate some other static functions.
author ib
date Fri, 29 Mar 2013 01:21:02 +0000
parents 249207676edf
children bbfc087697e1
files gui/dialog/msgbox.c gui/dialog/msgbox.h
diffstat 2 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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 );
+}
--- 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 */