[MPlayer-cvslog] r36085 - in trunk/gui/dialog: msgbox.c msgbox.h
ib
subversion at mplayerhq.hu
Fri Mar 29 02:21:02 CET 2013
Author: ib
Date: Fri Mar 29 02:21:02 2013
New Revision: 36085
Log:
Make create_MessageBox() static.
It only has file scope.
In order to do so, relocate some other static functions.
Modified:
trunk/gui/dialog/msgbox.c
trunk/gui/dialog/msgbox.h
Modified: trunk/gui/dialog/msgbox.c
==============================================================================
--- trunk/gui/dialog/msgbox.c Fri Mar 29 02:17:42 2013 (r36084)
+++ trunk/gui/dialog/msgbox.c Fri Mar 29 02:21:02 2013 (r36085)
@@ -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 @@ static void on_Ok_released( GtkButton *
MessageBox=NULL;
}
-GtkWidget * create_MessageBox( void )
+static GtkWidget * create_MessageBox( void )
{
GtkWidget * vbox1;
GtkWidget * hbox1;
@@ -113,3 +106,10 @@ GtkWidget * create_MessageBox( void )
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 );
+}
Modified: trunk/gui/dialog/msgbox.h
==============================================================================
--- trunk/gui/dialog/msgbox.h Fri Mar 29 02:17:42 2013 (r36084)
+++ trunk/gui/dialog/msgbox.h Fri Mar 29 02:21:02 2013 (r36085)
@@ -23,7 +23,6 @@
extern GtkWidget * MessageBox;
-GtkWidget * create_MessageBox( void );
void ShowMessageBox( const char * msg );
#endif /* MPLAYER_GUI_MSGBOX_H */
More information about the MPlayer-cvslog
mailing list