rem: clist_devises_parametres = gtk_clist_new_with_titles ( 3, titres_devise ); gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) , 0, TRUE ); gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) , 1, TRUE ); gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) , 2, TRUE ); gtk_clist_column_titles_passive ( GTK_CLIST ( clist_devises_parametres )); gtk_clist_set_column_justification ( GTK_CLIST ( clist_devises_parametres ), 1, GTK_JUSTIFY_CENTER); gtk_clist_set_column_justification ( GTK_CLIST ( clist_devises_parametres ), 2, GTK_JUSTIFY_CENTER); gtk_container_add ( GTK_CONTAINER ( scrolled_window ), clist_devises_parametres ); gtk_box_pack_start ( GTK_BOX ( hbox ), scrolled_window, TRUE, TRUE, 0);
add: while ( liste_tmp ) { struct struct_devise *devise;
context: GtkWidget *onglet_devises ( void ){    GtkWidget *vbox_pref, *label, *paddingbox;    GtkWidget *scrolled_window, *vbox, *table;    GSList *liste_tmp;    gchar *titres_devise [3] = { _("Currency"),	_("ISO Code"),	_("Sign") };	GtkWidget *bouton;	GtkWidget *hbox;	vbox_pref = new_vbox_with_title_and_icon ( _("Currencies"),						   "currencies.png" );	paddingbox = new_paddingbox_with_title (vbox_pref, TRUE,						_("Known currencies"));	hbox = gtk_hbox_new ( FALSE, 5 );	gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox,			     TRUE, TRUE, 0);	/* Currency list */	scrolled_window = gtk_scrolled_window_new ( NULL, NULL );	gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled_window ),					 GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);	clist_devises_parametres = gtk_clist_new_with_titles ( 3, titres_devise );	gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) ,					   0, TRUE );	gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) ,					   1, TRUE );	gtk_clist_set_column_auto_resize ( GTK_CLIST ( clist_devises_parametres ) ,					   2, TRUE );	gtk_clist_column_titles_passive ( GTK_CLIST ( clist_devises_parametres ));	gtk_clist_set_column_justification ( GTK_CLIST ( clist_devises_parametres ),					     1, GTK_JUSTIFY_CENTER);	gtk_clist_set_column_justification ( GTK_CLIST ( clist_devises_parametres ),					     2, GTK_JUSTIFY_CENTER);	gtk_container_add ( GTK_CONTAINER ( scrolled_window ),			    clist_devises_parametres );	gtk_box_pack_start ( GTK_BOX ( hbox ), scrolled_window,			     TRUE, TRUE, 0);	/*   s'il n'y a pas de fichier ouvert, on grise */	if ( !gsb_account_get_accounts_amount () )	    gtk_widget_set_sensitive ( vbox_pref, FALSE );	else	{	    /* remplissage de la liste avec les devises temporaires */	    liste_tmp = liste_struct_devises;	    while ( liste_tmp )	    {		struct struct_devise *devise;		gchar *ligne[3];		gint ligne_insert;		devise = liste_tmp -> data;		ligne[0] = devise -> nom_devise;		ligne[1] = devise -> code_iso4217_devise;		ligne[2] = devise -> code_devise;		ligne_insert = gtk_clist_append ( GTK_CLIST ( clist_devises_parametres ),						  ligne );		/* on associe Ã  la ligne la struct de la devise */		gtk_clist_set_row_data ( GTK_CLIST ( clist_devises_parametres ),					 ligne_insert,					 devise );		liste_tmp = liste_tmp -> next;	    }	}	/* Create Add/Remove buttons */	vbox = gtk_vbox_new ( FALSE, 5 );	gtk_box_pack_start ( GTK_BOX ( hbox ), vbox,			     FALSE, FALSE, 0 );	/* Button "Add" */	bouton = gtk_button_new_from_stock (GTK_STOCK_ADD);	gtk_signal_connect_object ( GTK_OBJECT ( bouton ),				    "clicked",				    GTK_SIGNAL_FUNC  ( ajout_devise ),				    GTK_OBJECT (clist_devises_parametres ));	gtk_box_pack_start ( GTK_BOX ( vbox ), bouton,			     FALSE, FALSE, 5 );	/* Button "Remove" */	bouton_supprimer_devise = gtk_button_new_from_stock (GTK_STOCK_REMOVE);	gtk_signal_connect ( GTK_OBJECT ( bouton_supprimer_devise ),			     "clicked",			     GTK_SIGNAL_FUNC  ( retrait_devise ),			     clist_devises_parametres );	gtk_box_pack_start ( GTK_BOX ( vbox ), bouton_supprimer_devise,			     FALSE, FALSE, 5 );	/* Input form for currencies */	paddingbox = new_paddingbox_with_title (vbox_pref, FALSE,						_("Currency properties"));	/* Selecting a currency activates this form */	gtk_signal_connect ( GTK_OBJECT ( clist_devises_parametres ),			     "select-row",			     GTK_SIGNAL_FUNC ( selection_ligne_devise ),			     paddingbox );	gtk_signal_connect ( GTK_OBJECT ( clist_devises_parametres ),			     "unselect-row",			     GTK_SIGNAL_FUNC ( deselection_ligne_devise ),			     paddingbox );	/* Create table */	table = gtk_table_new ( 2, 2, FALSE );	gtk_table_set_col_spacings ( GTK_TABLE ( table ), 5 );	gtk_table_set_row_spacings ( GTK_TABLE ( table ), 5 );	gtk_box_pack_start ( GTK_BOX ( paddingbox ), table,			     TRUE, TRUE, 0 );	/* Create currency name entry */	label = gtk_label_new (COLON(_("Name")));	gtk_misc_set_alignment (GTK_MISC (label), 0, 1);	gtk_label_set_justify ( GTK_LABEL(label), GTK_JUSTIFY_RIGHT );	gtk_table_attach ( GTK_TABLE ( table ),			   label, 0, 1, 0, 1,			   GTK_SHRINK | GTK_FILL, 0,			   0, 0 );	entree_nom_devise_parametres = new_text_entry ( NULL, (GCallback) changement_nom_entree_devise );	gtk_table_attach ( GTK_TABLE ( table ),			   entree_nom_devise_parametres, 			   1, 2, 0, 1, 			   GTK_EXPAND | GTK_FILL, 0,			   0, 0 );	/* Create code entry */	label = gtk_label_new (COLON(_("Sign")));	gtk_misc_set_alignment (GTK_MISC (label), 0, 1);	gtk_label_set_justify ( GTK_LABEL(label), GTK_JUSTIFY_RIGHT );	gtk_table_attach ( GTK_TABLE ( table ),			   label, 			   0, 1, 1, 2,			   GTK_SHRINK | GTK_FILL, 0,			   0, 0 );	entree_code_devise_parametres = new_text_entry ( NULL, (GCallback) changement_code_entree_devise );	gtk_table_attach ( GTK_TABLE ( table ),			   entree_code_devise_parametres, 			   1, 2, 1, 2,			   GTK_EXPAND | GTK_FILL, 0,			   0, 0 );	/* Create code entry */	label = gtk_label_new ( COLON(_("ISO code")) );	gtk_misc_set_alignment (GTK_MISC (label), 0, 1);	gtk_label_set_justify ( GTK_LABEL(label), GTK_JUSTIFY_RIGHT );	gtk_table_attach ( GTK_TABLE ( table ),			   label,			   0, 1, 2, 3,			   GTK_SHRINK | GTK_FILL, 0,			   0, 0 );	entree_iso_code_devise_parametres = new_text_entry ( NULL, (GCallback) changement_iso_code_entree_devise );	gtk_table_attach ( GTK_TABLE ( table ),			   entree_iso_code_devise_parametres, 			   1, 2, 2, 3,			   GTK_EXPAND | GTK_FILL, 0,			   0, 0 );	/* Select first entry if applicable */	gtk_clist_select_row ( GTK_CLIST(clist_devises_parametres), 0, 0 ); 	return ( vbox_pref );}