[MPlayer-cvslog] r38556 - trunk/gui/dialog/dialog.c

ib subversion at mplayerhq.hu
Fri Jun 14 13:03:45 EEST 2024


Author: ib
Date: Fri Jun 14 13:03:45 2024
New Revision: 38556

Log:
Remove gtkSelectInCList().

Inline its code.

Modified:
   trunk/gui/dialog/dialog.c

Modified: trunk/gui/dialog/dialog.c
==============================================================================
--- trunk/gui/dialog/dialog.c	Fri Jun 14 13:01:38 2024	(r38555)
+++ trunk/gui/dialog/dialog.c	Fri Jun 14 13:03:45 2024	(r38556)
@@ -257,14 +257,6 @@ void gtkRaise(GtkWidget *window)
     wsWindowRaiseTop(XDISPLAY, GDK_WINDOW_XID(gtk_widget_get_window(window)));
 }
 
-static void gtkSelectInCList(GtkWidget *list, char *item)
-{
-    gint i;
-
-    if ((i = gtkFindInCList(list, item)) > -1)
-        gtk_clist_select_row(GTK_CLIST(list), i, 0);
-}
-
 void gtkShow(int type, char *param)
 {
     switch (type) {
@@ -279,7 +271,11 @@ void gtkShow(int type, char *param)
 //        gtk_clist_clear(GTK_CLIST(SkinList));
         if (FillSkinList(sbSkinDirInHome) &&
             FillSkinList(sbSkinDirInData)) {
-            gtkSelectInCList(SkinList, param);
+            gint i;
+
+            if ((i = gtkFindInCList(SkinList, param)) > -1)
+                gtk_clist_select_row(GTK_CLIST(SkinList), i, 0);
+
             gtk_clist_sort(GTK_CLIST(SkinList));
             gtkSetLayer(SkinBrowser);
         }


More information about the MPlayer-cvslog mailing list