add: if ( !nb_comptes ) { gtk_widget_set_sensitive ( vbox_pref, FALSE ); }
context: GtkWidget *onglet_fichier ( void ){  GtkWidget *box_pref1, *vbox_pref, *paddingbox;  GtkWidget *separateur;  GtkWidget *vbox;  GtkWidget *hbox;  GtkWidget *label;  vbox_pref = new_vbox_with_title_and_icon ( _("Files"),					     "files.png" );  /* Account file handling */  paddingbox = new_paddingbox_with_title (vbox_pref, FALSE,					  _("Account files handling"));  /* Automatically load last file on startup? */  bouton_avec_demarrage =    new_checkbox_with_title (_("Automatically load last file on startup"),			     &(etat.dernier_fichier_auto), NULL );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_avec_demarrage, 		       FALSE, FALSE, 0 );  bouton_save_auto = new_checkbox_with_title (_("Automatically save on exit"),					      &(etat.sauvegarde_auto), NULL);  gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_save_auto, 		       FALSE, FALSE, 0 );  /* Warn if file is used by someone else? */  bouton_force_enregistrement =     new_checkbox_with_title ( _("Force saving of locked files"),			      &(etat.force_enregistrement), NULL );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_force_enregistrement,		       FALSE, FALSE, 0 );  /* Compression level of files */  hbox = gtk_hbox_new ( FALSE, 5 );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox,		       FALSE, FALSE, 0 );  label = gtk_label_new ( COLON(_("File compression level")) );  gtk_box_pack_start ( GTK_BOX ( hbox ), label,		       FALSE, FALSE, 0 );  spin_button_compression_fichier =     new_spin_button ( &(compression_fichier),		      0, 9, 1, 5, 1, 1, 0, NULL );    gtk_box_pack_start ( GTK_BOX ( hbox ), spin_button_compression_fichier,		       FALSE, FALSE, 0 );  /* Memorize last opened files in menu */  hbox = gtk_hbox_new ( FALSE, 5 );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox,		       FALSE, FALSE, 0 );  label = gtk_label_new ( COLON(_("Memorise last opened files")) );  gtk_box_pack_start ( GTK_BOX ( hbox ), label,		       FALSE, FALSE, 0 );  spin_button_derniers_fichiers_ouverts =     new_spin_button ( &(nb_max_derniers_fichiers_ouverts),		      0, 20, 1, 5, 1, 1, 0, NULL );  gtk_box_pack_start ( GTK_BOX ( hbox ), spin_button_derniers_fichiers_ouverts,		       FALSE, FALSE, 0 );  /* Backups */  paddingbox = new_paddingbox_with_title (vbox_pref, FALSE,					  _("Backups"));  /* Backup at each opening? */  bouton_save_demarrage =     new_checkbox_with_title ( _("Make a backup copy after opening files"),			      &(etat.sauvegarde_demarrage), NULL );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_save_demarrage,		       FALSE, FALSE, 0 );  /* Automatic backup ? */  bouton_demande_backup = new_checkbox_with_title (_("Make a backup copy before saving files"),						   NULL, (GCallback) changement_choix_backup);  gtk_box_pack_start ( GTK_BOX ( paddingbox ), bouton_demande_backup,		       FALSE, FALSE, 0 );  if ( nb_comptes )    {      gboolean dummy = (nom_fichier_backup != NULL &&			strlen(nom_fichier_backup) > 0);      /* Ugly dance ... */      checkbox_set_value ( bouton_demande_backup, &dummy, FALSE );      /* Mise en forme de l'entre du chemin de la backup */      hbox = gtk_hbox_new ( FALSE, 5 );      gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox,			   FALSE, FALSE, 0 );      label = gtk_label_new ( COLON(_("Backup file")) );      gtk_box_pack_start ( GTK_BOX ( hbox ), label,			   FALSE, FALSE, 0 );      entree_chemin_backup = gnome_file_entry_new ( "backup_grisbi",						    _("Grisbi backup") );      gtk_widget_set_usize ( gnome_file_entry_gnome_entry ( GNOME_FILE_ENTRY ( entree_chemin_backup )),			     300,			     FALSE );      gnome_file_entry_set_modal ( GNOME_FILE_ENTRY ( entree_chemin_backup ),				   TRUE );      if ( nom_fichier_backup && strlen(nom_fichier_backup) )	{	  gtk_entry_set_text ( GTK_ENTRY ( gnome_file_entry_gtk_entry ( GNOME_FILE_ENTRY (entree_chemin_backup ))),			       nom_fichier_backup );	  gtk_widget_set_sensitive ( GTK_WIDGET ( entree_chemin_backup ),				     TRUE );	}      else	gtk_widget_set_sensitive ( GTK_WIDGET ( entree_chemin_backup ),				   FALSE );            g_signal_connect_after ( GTK_OBJECT ( gnome_file_entry_gtk_entry(GNOME_FILE_ENTRY(entree_chemin_backup))),			       "insert-text",			       (GCallback) change_backup_path,			       NULL);      g_signal_connect_after ( GTK_OBJECT ( gnome_file_entry_gtk_entry(GNOME_FILE_ENTRY(entree_chemin_backup))),			       "delete-text",			       (GCallback) change_backup_path,			       NULL);      gtk_box_pack_start ( GTK_BOX ( hbox ), entree_chemin_backup,			   FALSE, FALSE, 0 );    }  else    {      gtk_widget_set_sensitive ( bouton_demande_backup, FALSE );    }  /* Compression level of backups */  hbox = gtk_hbox_new ( FALSE, 5 );  gtk_box_pack_start ( GTK_BOX ( paddingbox ), hbox,		       FALSE, FALSE, 0 );  label = gtk_label_new ( COLON(_("Backup compression level")) );  gtk_box_pack_start ( GTK_BOX ( hbox ), label,		       FALSE, FALSE, 0 );  spin_button_compression_backup = new_spin_button ( &(compression_backup),						     0, 9, 1, 5, 1, 1, 0, NULL );  gtk_box_pack_start ( GTK_BOX ( hbox ), spin_button_compression_backup,		       FALSE, FALSE, 0 );  gtk_widget_show_all ( vbox_pref );  return ( vbox_pref );}