add: if ( !nb_comptes ) { gtk_widget_set_sensitive ( vbox_pref, FALSE ); }
context: GtkWidget *onglet_affichage_operations ( void ){  GtkWidget * vbox_pref, *onglet, *table, *label, *hbox, *bouton, *paddingbox;  vbox_pref = new_vbox_with_title_and_icon ( _("Transactions list"),					     "transaction-list.png" );  /* on permet de choisir quelle ligne seront affiches en fonction des caractristiques de l'affichage */  /* pour op simplifie */  paddingbox = new_paddingbox_with_title (vbox_pref, FALSE,					  _("Display modes"));  table = gtk_table_new ( 3, 6, FALSE );  gtk_table_set_col_spacings ( GTK_TABLE ( table ), 6 );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), table,		       FALSE, FALSE, 0 );  label = gtk_label_new ( COLON(_("One line mode")));  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, GTK_SHRINK | GTK_FILL, 0, 0 );  bouton_affichage_lignes_une_ligne = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU(bouton_affichage_lignes_une_ligne),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE(table), bouton_affichage_lignes_une_ligne,			      1, 2, 0, 1 );  /* pour 2 lignes */  label = gtk_label_new ( COLON(_("Two lines mode")));  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, GTK_SHRINK | GTK_FILL, 0, 0 );  bouton_affichage_lignes_deux_lignes_1 = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU(bouton_affichage_lignes_deux_lignes_1),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE(table), bouton_affichage_lignes_deux_lignes_1,			      1, 2, 1, 2 );  bouton_affichage_lignes_deux_lignes_2 = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU(bouton_affichage_lignes_deux_lignes_2),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE(table), bouton_affichage_lignes_deux_lignes_2,			      2, 3, 1, 2 );  /* pour 3 lignes */  label = gtk_label_new ( COLON(_("Three lines mode")));  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, GTK_SHRINK | GTK_FILL, 0, 0 );  bouton_affichage_lignes_trois_lignes_1 = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_1 ),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE ( table ), bouton_affichage_lignes_trois_lignes_1,			      1, 2, 2, 3 );  bouton_affichage_lignes_trois_lignes_2 = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_2 ),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE ( table ), bouton_affichage_lignes_trois_lignes_2,			      2, 3, 2, 3 );  bouton_affichage_lignes_trois_lignes_3 = gtk_option_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_3 ),			     cree_menu_quatres_lignes ());  gtk_table_attach_defaults ( GTK_TABLE ( table ), bouton_affichage_lignes_trois_lignes_3,			      3, 4, 2, 3 );  if ( nb_comptes )    {      /* on remplit le tableau */      remplissage_tab_affichage_ope ( clist_affichage_liste );      gtk_signal_connect ( GTK_OBJECT ( clist_affichage_liste ),			   "size-allocate",			   GTK_SIGNAL_FUNC ( allocation_clist_affichage_liste ),			   NULL );      /* on place les lignes  afficher */      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_une_ligne ),				    ligne_affichage_une_ligne);      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_deux_lignes_1 ),				    GPOINTER_TO_INT (lignes_affichage_deux_lignes->data));      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_deux_lignes_2 ),				    GPOINTER_TO_INT (lignes_affichage_deux_lignes->next->data));      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_1 ),				    GPOINTER_TO_INT (lignes_affichage_trois_lignes->data));      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_2 ),				    GPOINTER_TO_INT (lignes_affichage_trois_lignes->next->data));      gtk_option_menu_set_history ( GTK_OPTION_MENU ( bouton_affichage_lignes_trois_lignes_3 ),				    GPOINTER_TO_INT (lignes_affichage_trois_lignes->next->next->data));    }  else    {      gtk_widget_set_sensitive ( table, FALSE );      gtk_widget_set_sensitive ( clist_affichage_liste, FALSE );       gtk_widget_set_sensitive ( bouton_affichage_lignes_une_ligne, FALSE );      gtk_widget_set_sensitive ( bouton_affichage_lignes_deux_lignes_1, FALSE );      gtk_widget_set_sensitive ( bouton_affichage_lignes_deux_lignes_2, FALSE );      gtk_widget_set_sensitive ( bouton_affichage_lignes_trois_lignes_1, FALSE );      gtk_widget_set_sensitive ( bouton_affichage_lignes_trois_lignes_2, FALSE );      gtk_widget_set_sensitive ( bouton_affichage_lignes_trois_lignes_3, FALSE );      gtk_widget_set_sensitive ( bouton, FALSE );    }  /* Connect all menus */  g_signal_connect ( G_OBJECT ( bouton_affichage_lignes_une_ligne ), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  g_signal_connect ( G_OBJECT (bouton_affichage_lignes_deux_lignes_1), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  g_signal_connect ( G_OBJECT(bouton_affichage_lignes_deux_lignes_2), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  g_signal_connect ( G_OBJECT(bouton_affichage_lignes_trois_lignes_1), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  g_signal_connect ( G_OBJECT(bouton_affichage_lignes_trois_lignes_2), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  g_signal_connect ( G_OBJECT(bouton_affichage_lignes_trois_lignes_3), "changed",		     (GCallback) transactions_list_display_modes_menu_changed,		     NULL );  /* Then add the "sort by" buttons */  paddingbox = new_radiogroup_with_title (vbox_pref,					  _("Sort transaction list"),					  _("by value date"),					  _("by date"),					  &etat.classement_par_date, NULL);  return ( vbox_pref );}