[MPlayer-cvslog] r38539 - trunk/gui/dialog/equalizer.c
ib
subversion at mplayerhq.hu
Fri May 17 21:08:51 EEST 2024
Author: ib
Date: Fri May 17 21:08:51 2024
New Revision: 38539
Log:
Replace the GList of equalizer channels with a GSList.
A GSList is sufficient, the additional GList features are not required.
Modified:
trunk/gui/dialog/equalizer.c
Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c Fri May 17 21:07:42 2024 (r38538)
+++ trunk/gui/dialog/equalizer.c Fri May 17 21:08:51 2024 (r38539)
@@ -524,17 +524,17 @@ GtkWidget * CreateEquConfig( void );
void ShowEquConfig( void )
{
- GList * Items = NULL, *list;
+ GSList *Items = NULL, *list;
if ( EquConfig ) gtkRaise( EquConfig );
else EquConfig=CreateEquConfig();
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_FrontRight) );
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_FrontLeft) );
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_RearRight) );
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_RearLeft) );
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_Center) );
- Items=g_list_append( Items,(gpointer)_(MSGTR_GUI_Bass) );
+ Items = g_slist_append(Items, _(MSGTR_GUI_FrontRight));
+ Items = g_slist_append(Items, _(MSGTR_GUI_FrontLeft));
+ Items = g_slist_append(Items, _(MSGTR_GUI_RearRight));
+ Items = g_slist_append(Items, _(MSGTR_GUI_RearLeft));
+ Items = g_slist_append(Items, _(MSGTR_GUI_Center));
+ Items = g_slist_append(Items, _(MSGTR_GUI_Bass));
list = Items;
@@ -550,7 +550,7 @@ void ShowEquConfig( void )
list = list->next;
}
- g_list_free( Items );
+ g_slist_free(Items);
gtk_entry_set_text(gtkEntry(CBChannel1), gtkEquChannel1); gtkEntrySetEditable(CBChannel1, FALSE);
gtk_entry_set_text(gtkEntry(CBChannel2), gtkEquChannel2); gtkEntrySetEditable(CBChannel2, FALSE);
More information about the MPlayer-cvslog
mailing list