changeset 35989:188b782b013f

Make create_About() static. It only has file scope. In order to do so, relocate some other static functions.
author ib
date Fri, 29 Mar 2013 01:14:44 +0000
parents ad1a5580c91d
children 249207676edf
files gui/dialog/about.c gui/dialog/about.h
diffstat 2 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/about.c	Fri Mar 29 01:11:48 2013 +0000
+++ b/gui/dialog/about.c	Fri Mar 29 01:14:44 2013 +0000
@@ -28,17 +28,10 @@
 
 GtkWidget * About = NULL;
 
-void ShowAbout( void )
-{
- if ( About ) gtkActive( About );
-   else About=create_About();
- gtk_widget_show( About );
-}
-
 static void abWidgetDestroy( GtkButton * button, gpointer user_data )
 { WidgetDestroy( NULL,&About ); }
 
-GtkWidget * create_About( void )
+static GtkWidget * create_About( void )
 {
   GtkWidget     * vbox;
   GtkWidget     * pixmap1;
@@ -351,3 +344,10 @@
 
   return About;
 }
+
+void ShowAbout( void )
+{
+ if ( About ) gtkActive( About );
+   else About=create_About();
+ gtk_widget_show( About );
+}
--- a/gui/dialog/about.h	Fri Mar 29 01:11:48 2013 +0000
+++ b/gui/dialog/about.h	Fri Mar 29 01:14:44 2013 +0000
@@ -23,7 +23,6 @@
 
 extern GtkWidget * About;
 
-GtkWidget * create_About( void );
 void ShowAbout( void );
 
 #endif /* MPLAYER_GUI_ABOUT_H */