[MPlayer-cvslog] r36083 - in trunk/gui/dialog: about.c about.h

ib subversion at mplayerhq.hu
Fri Mar 29 02:14:44 CET 2013


Author: ib
Date: Fri Mar 29 02:14:44 2013
New Revision: 36083

Log:
Make create_About() static.

It only has file scope.

In order to do so, relocate some other static functions.

Modified:
   trunk/gui/dialog/about.c
   trunk/gui/dialog/about.h

Modified: trunk/gui/dialog/about.c
==============================================================================
--- trunk/gui/dialog/about.c	Fri Mar 29 02:11:48 2013	(r36082)
+++ trunk/gui/dialog/about.c	Fri Mar 29 02:14:44 2013	(r36083)
@@ -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 @@ GtkWidget * create_About( void )
 
   return About;
 }
+
+void ShowAbout( void )
+{
+ if ( About ) gtkActive( About );
+   else About=create_About();
+ gtk_widget_show( About );
+}

Modified: trunk/gui/dialog/about.h
==============================================================================
--- trunk/gui/dialog/about.h	Fri Mar 29 02:11:48 2013	(r36082)
+++ trunk/gui/dialog/about.h	Fri Mar 29 02:14:44 2013	(r36083)
@@ -23,7 +23,6 @@
 
 extern GtkWidget * About;
 
-GtkWidget * create_About( void );
 void ShowAbout( void );
 
 #endif /* MPLAYER_GUI_ABOUT_H */


More information about the MPlayer-cvslog mailing list