rem: GSList *list_tmp;
context: gboolean change_aspect_liste ( gint demande ){    GtkWidget * widget;    GSList *list_tmp;    block_menu_cb = TRUE;    switch ( demande )    {	case 0:	    /* 	    changement de l'affichage de la grille */	  etat.affichage_grille = ! etat.affichage_grille;	    if ( etat.affichage_grille )	    {		/* 		on affiche les grilles */		g_signal_connect_after ( G_OBJECT ( tree_view_liste_ventilations ),					 "expose-event",					 G_CALLBACK ( affichage_traits_liste_ventilation ),					 NULL );		g_signal_connect_after ( G_OBJECT ( tree_view_liste_echeances ),					 "expose-event",					 G_CALLBACK ( affichage_traits_liste_echeances ),					 NULL );		list_tmp = list_struct_accounts;		while ( list_tmp )		{		    gint i;		    i = gsb_account_get_no_account ( list_tmp -> data );		    g_signal_connect_after ( G_OBJECT ( gsb_account_get_tree_view (i) ),					     "expose-event",					     G_CALLBACK ( affichage_traits_liste_operation ),					     NULL );		    list_tmp = list_tmp -> next;		}	    }	    else	    {		g_signal_handlers_disconnect_by_func ( G_OBJECT ( tree_view_liste_ventilations ),						       G_CALLBACK ( affichage_traits_liste_ventilation ),						       NULL );		g_signal_handlers_disconnect_by_func ( G_OBJECT ( tree_view_liste_echeances ),						       G_CALLBACK ( affichage_traits_liste_echeances ),						       NULL );		GSList *list_tmp;		list_tmp = list_struct_accounts;		while ( list_tmp )		{		    gint i;		    i = gsb_account_get_no_account ( list_tmp -> data );		    g_signal_handlers_disconnect_by_func ( G_OBJECT ( gsb_account_get_tree_view (i) ),							   G_CALLBACK ( affichage_traits_liste_operation ),							   NULL );		    list_tmp = list_tmp -> next;		}	    }	    gtk_widget_queue_draw ( gsb_account_get_tree_view (compte_courant) );	    gtk_widget_queue_draw ( tree_view_liste_echeances );	    block_menu_cb = TRUE;	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show grid"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), 					    etat.affichage_grille );	    block_menu_cb = FALSE;	    mise_a_jour_boutons_grille ();	    break;	/* 	1, 2, 3 et 4 sont les nb de lignes qu'on demande à afficher */	case 1 :	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show one line per transaction"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), TRUE );	    mise_a_jour_affichage_lignes ( demande );	    modification_fichier ( TRUE );	    break;	case 2 :	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show two lines per transaction"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), TRUE );	    mise_a_jour_affichage_lignes ( demande );	    modification_fichier ( TRUE );	    break;	case 3 :	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show three lines per transaction"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), TRUE );	    mise_a_jour_affichage_lignes ( demande );	    modification_fichier ( TRUE );	    break;	case 4 :	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show four lines per transaction"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), TRUE );	    mise_a_jour_affichage_lignes ( demande );	    modification_fichier ( TRUE );	    break;	case 5 :	    /* ope avec r */	    mise_a_jour_affichage_r ( 1 );	    modification_fichier ( TRUE );	    block_menu_cb = TRUE;	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show reconciled transactions"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), TRUE );	    block_menu_cb = FALSE;	    break;	case 6 :	    /* ope sans r */	    mise_a_jour_affichage_r ( 0 );	    modification_fichier ( TRUE );	    block_menu_cb = TRUE;	    widget = gtk_item_factory_get_item ( item_factory_menu_general,						 menu_name(_("View"), _("Show reconciled transactions"), NULL) );	    gtk_check_menu_item_set_active( GTK_CHECK_MENU_ITEM(widget), FALSE );	    block_menu_cb = FALSE;	    break;    }    block_menu_cb = FALSE;    return ( TRUE );}