diff gui/mplayer/gtk/opts.c @ 30535:016e5fc1dead

GUI: Mark functions that are not used outside their files as static.
author diego
date Sun, 14 Feb 2010 14:02:09 +0000
parents 0f1b5b68af32
children 39a4dd7ec420
line wrap: on
line diff
--- a/gui/mplayer/gtk/opts.c	Sun Feb 14 13:57:30 2010 +0000
+++ b/gui/mplayer/gtk/opts.c	Sun Feb 14 14:02:09 2010 +0000
@@ -480,7 +480,7 @@
  }
 }
 
-void HidePreferences( void )
+static void HidePreferences( void )
 {
  if ( !Preferences ) return;
  gtk_widget_hide( Preferences );
@@ -528,7 +528,7 @@
 #define bLSubtitle 4
 #define bLFont     5
 
-void prButton( GtkButton * button,gpointer user_data )
+static void prButton( GtkButton * button, gpointer user_data )
 {
  switch ( (int)user_data )
   {
@@ -1374,7 +1374,8 @@
 }
 
 #ifdef CONFIG_OSS_AUDIO
-GList *appendOSSDevices(GList *l) {
+static GList *appendOSSDevices(GList *l)
+{
   // careful! the current implementation allows only string constants!
   l = g_list_append(l, (gpointer)"/dev/dsp");
   if (gtkAOOSSDevice && strncmp(gtkAOOSSDevice, "/dev/sound", 10) == 0) {
@@ -1398,7 +1399,8 @@
   return l;
 }
 
-GList *appendOSSMixers(GList *l) {
+static GList *appendOSSMixers(GList *l)
+{
   // careful! the current implementation allows only string constants!
   l = g_list_append(l, (gpointer)"/dev/mixer");
   if (gtkAOOSSMixer && strncmp(gtkAOOSSMixer, "/dev/sound", 10) == 0) {
@@ -1415,7 +1417,8 @@
   return l;
 }
 
-GList *appendOSSMixerChannels(GList *l) {
+static GList *appendOSSMixerChannels(GList *l)
+{
   l = g_list_append(l, (gpointer)"vol");
   l = g_list_append(l, (gpointer)"pcm");
   l = g_list_append(l, (gpointer)"line");
@@ -1424,7 +1427,8 @@
 #endif
 
 #ifdef CONFIG_ALSA
-GList *appendALSADevices(GList *l) {
+static GList *appendALSADevices(GList *l)
+{
   l = g_list_append(l, (gpointer)"default");
   l = g_list_append(l, (gpointer)"hw=0.0");
   l = g_list_append(l, (gpointer)"hw=0.1");
@@ -1436,12 +1440,14 @@
   return l;
 }
 
-GList *appendALSAMixers(GList *l) {
+static GList *appendALSAMixers(GList *l)
+{
   l = g_list_append(l, (gpointer)"default");
   return l;
 }
 
-GList *appendALSAMixerChannels(GList *l) {
+static GList *appendALSAMixerChannels(GList *l)
+{
   l = g_list_append(l, (gpointer)"Master");
   l = g_list_append(l, (gpointer)"Line");
   l = g_list_append(l, (gpointer)"PCM");
@@ -1451,7 +1457,8 @@
 #endif
 
 #ifdef CONFIG_SDL
-GList *appendSDLDevices(GList *l) {
+static GList *appendSDLDevices(GList *l)
+{
   l = g_list_append(l, (gpointer)"alsa");
   l = g_list_append(l, (gpointer)"arts");
   l = g_list_append(l, (gpointer)"esd");
@@ -1463,7 +1470,8 @@
 #endif
 
 #ifdef CONFIG_ESD
-GList *appendESDDevices(GList *l) {
+static GList *appendESDDevices(GList *l)
+{
   l = g_list_append(l, (gpointer)"Enter Remote IP");
   l = g_list_append(l, (gpointer)"Use Software Mixer");
   return l;
@@ -1472,7 +1480,8 @@
 
 // Gets text string from a gtk entry, interpreting
 // MSGTR_PREFERENCES_DriverDefault as null string.
-const char *getGtkEntryText(GtkWidget *from) {
+static const char *getGtkEntryText(GtkWidget *from)
+{
   const char *tmp = gtk_entry_get_text(GTK_ENTRY(from));
   if (strcmp(tmp, MSGTR_PREFERENCES_DriverDefault) == 0) {
     tmp = NULL;
@@ -1482,7 +1491,8 @@
 
 // Sets text string of a gtk entry, interpreting
 // null string as MSGTR_PREFERENCES_DriverDefault.
-void setGtkEntryText(GtkWidget *dest, char *to) {
+static void setGtkEntryText(GtkWidget *dest, char *to)
+{
   if (!to) {
     to = MSGTR_PREFERENCES_DriverDefault;
   }