changeset 36021:bc1d68f48ca5

Make gtkSetDefaultToCList() static. It only has file scope. Additionally, rename it gtkSelectInCList().
author ib
date Sun, 31 Mar 2013 17:38:13 +0000
parents ecf86ae01e4e
children bf5690e00dc6
files gui/dialog/dialog.c gui/dialog/dialog.h
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/dialog.c	Sun Mar 31 17:36:04 2013 +0000
+++ b/gui/dialog/dialog.c	Sun Mar 31 17:38:13 2013 +0000
@@ -203,7 +203,7 @@
     return -1;
 }
 
-void gtkSetDefaultToCList(GtkWidget *list, char *item)
+static void gtkSelectInCList(GtkWidget *list, char *item)
 {
     gint i;
 
@@ -299,7 +299,7 @@
 //        gtk_clist_clear(GTK_CLIST(SkinList));
         if (gtkFillSkinList(sbMPlayerPrefixDir) &&
             gtkFillSkinList(sbMPlayerDirInHome)) {
-            gtkSetDefaultToCList(SkinList, param);
+            gtkSelectInCList(SkinList, param);
             gtk_clist_sort(GTK_CLIST(SkinList));
             gtk_widget_show(SkinBrowser);
             gtkSetLayer(SkinBrowser);
--- a/gui/dialog/dialog.h	Sun Mar 31 17:36:04 2013 +0000
+++ b/gui/dialog/dialog.h	Sun Mar 31 17:38:13 2013 +0000
@@ -67,7 +67,6 @@
 void gtkAddIcon(GtkWidget *window);
 
 int gtkFillSkinList(gchar *dir);
-void gtkSetDefaultToCList(GtkWidget *list, char *item);
 int gtkFindCList(GtkWidget *list, char *item);
 
 void gtkEventHandling(void);