rem: bouton_pas_solde_mini= gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_solde_mini )), SPACIFY(_("No warnings")) ); gtk_box_pack_start ( GTK_BOX ( vbox ), bouton_pas_solde_mini, FALSE, FALSE, 0 ); gtk_widget_show ( bouton_pas_solde_mini );
context: GtkWidget *onglet_general ( void ){  GtkWidget *hbox_pref;  GtkWidget *vbox_pref;  GtkWidget *separateur;  GtkWidget *vbox;  GtkWidget *hbox;  GtkWidget *label;  GtkWidget *scrolled_window;  vbox_pref = gtk_vbox_new ( FALSE,               /* fenetre de base verticale */			     5 );  gtk_widget_show ( vbox_pref );  hbox_pref = gtk_hbox_new ( FALSE,			     5 );  gtk_box_pack_start ( GTK_BOX ( vbox_pref ),		       hbox_pref,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( hbox_pref );/* cration de la 1re colonne */  vbox = gtk_vbox_new ( FALSE,			    5 );  gtk_box_pack_start ( GTK_BOX ( hbox_pref ),		       vbox,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( vbox );/* action de la touche entree */  bouton_entree_enregistre = gtk_radio_button_new_with_label ( NULL,						       SPACIFY(_("ENTER means save the transaction")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_entree_enregistre,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_entree_enregistre );  bouton_entree_enregistre_pas = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_entree_enregistre )),								   SPACIFY(_("ENTER means switch beetween the form fields")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_entree_enregistre_pas,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_entree_enregistre_pas );  if ( etat.entree == 1 )    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( bouton_entree_enregistre ),				   TRUE );  else    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( bouton_entree_enregistre_pas ),				   TRUE );   gtk_signal_connect_object ( GTK_OBJECT ( bouton_entree_enregistre ),			      "toggled",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));/* sparation */  separateur = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( vbox ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );/* affichage ou non d'un message d'alerte quand passage sous les soldes minis */  bouton_solde_mini = gtk_radio_button_new_with_label ( NULL,							SPACIFY(_("Warning message if the minimum balances are over minimum level defined")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_solde_mini,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_solde_mini );   bouton_pas_solde_mini= gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_solde_mini )),						     SPACIFY(_("No warnings")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_pas_solde_mini,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_pas_solde_mini );  if ( etat.alerte_mini == 1 )    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON (bouton_solde_mini  ),				   TRUE );  else    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( bouton_pas_solde_mini ),				   TRUE );  gtk_signal_connect_object ( GTK_OBJECT ( bouton_solde_mini ),			      "toggled",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));     /* sparation */  separateur = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( vbox ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );/* affichage ou non d'un message d'alerte sur la permission du fichier de compte */  bouton_affiche_permission = gtk_radio_button_new_with_label ( NULL,							SPACIFY(_("Warning message if the file is readable by someone else")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_affiche_permission,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_affiche_permission );  bouton_affiche_pas_permission = gtk_radio_button_new_with_label ( gtk_radio_button_group ( GTK_RADIO_BUTTON ( bouton_affiche_permission )),							   SPACIFY(_("No warnings")) );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       bouton_affiche_pas_permission,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( bouton_affiche_pas_permission );  if ( etat.alerte_permission )    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( bouton_affiche_permission ),				   TRUE );  else    gtk_toggle_button_set_active ( GTK_TOGGLE_BUTTON ( bouton_affiche_pas_permission ),				   TRUE );  gtk_signal_connect_object ( GTK_OBJECT ( bouton_affiche_permission ),			      "toggled",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));       separateur = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( vbox ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );/* sparateur vertical entre les deux parties */  separateur = gtk_vseparator_new ();  gtk_box_pack_start ( GTK_BOX ( hbox_pref ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );/* cration de la 2me colonne */  vbox = gtk_vbox_new ( FALSE,			    5 );  gtk_container_set_border_width ( GTK_CONTAINER ( vbox ),				   5 );  gtk_box_pack_start ( GTK_BOX ( hbox_pref ),		       vbox,		       TRUE,		       TRUE,		       0);  gtk_widget_show ( vbox );  /* mise en place du titre du fichier */  hbox = gtk_hbox_new ( FALSE,			5 );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       hbox,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( hbox );  label = gtk_label_new ( COLON(_("File name")) );  gtk_box_pack_start ( GTK_BOX ( hbox ),		       label,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( label );  entree_titre_fichier = gtk_entry_new ();  if ( titre_fichier )    gtk_entry_set_text ( GTK_ENTRY ( entree_titre_fichier ),			 titre_fichier );  gtk_signal_connect_object ( GTK_OBJECT ( entree_titre_fichier ),			      "changed",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));  gtk_box_pack_start ( GTK_BOX ( hbox ),		       entree_titre_fichier,		       TRUE,		       TRUE,		       0);  gtk_widget_show ( entree_titre_fichier );  if ( !nb_comptes )    gtk_widget_set_sensitive ( entree_titre_fichier,			       FALSE );  /* mise en place de l'adresse commune */  hbox = gtk_hbox_new ( FALSE,			5 );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       hbox,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( hbox );  label = gtk_label_new ( COLON(_("Common address")) );  gtk_box_pack_start ( GTK_BOX ( hbox ),		       label,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( label );  scrolled_window = gtk_scrolled_window_new ( NULL,					      NULL );  gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled_window ),				   GTK_POLICY_AUTOMATIC,				   GTK_POLICY_AUTOMATIC );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       scrolled_window,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( scrolled_window );  entree_adresse_commune = gtk_text_new ( FALSE,					  FALSE );  gtk_text_set_editable ( GTK_TEXT ( entree_adresse_commune ),			  TRUE );  if ( adresse_commune )    gtk_text_insert ( GTK_TEXT (entree_adresse_commune  ),		      NULL,		      NULL,		      NULL,		      adresse_commune,		      -1 );  gtk_signal_connect_object ( GTK_OBJECT ( entree_adresse_commune ),			      "changed",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));  gtk_container_add ( GTK_CONTAINER ( scrolled_window ),		      entree_adresse_commune );  gtk_widget_show ( entree_adresse_commune );  /* mise en place de la seconde adresse */  hbox = gtk_hbox_new ( FALSE,			5 );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       hbox,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( hbox );  label = gtk_label_new ( COLON(_("Secondary address")) );  gtk_box_pack_start ( GTK_BOX ( hbox ),		       label,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( label );  scrolled_window = gtk_scrolled_window_new ( NULL,					      NULL );  gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled_window ),				   GTK_POLICY_AUTOMATIC,				   GTK_POLICY_AUTOMATIC );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       scrolled_window,		       FALSE,		       FALSE,		       0);  gtk_widget_show ( scrolled_window );  entree_adresse_secondaire = gtk_text_new ( FALSE,					  FALSE );  gtk_text_set_editable ( GTK_TEXT ( entree_adresse_secondaire ),			  TRUE );  if ( adresse_secondaire )    gtk_text_insert ( GTK_TEXT ( entree_adresse_secondaire ),		      NULL,		      NULL,		      NULL,		      adresse_secondaire,		      -1 );  gtk_signal_connect_object ( GTK_OBJECT ( entree_adresse_secondaire ),			      "changed",			      gnome_property_box_changed,			      GTK_OBJECT (fenetre_preferences));  gtk_container_add ( GTK_CONTAINER ( scrolled_window ),		      entree_adresse_secondaire );  gtk_widget_show ( entree_adresse_secondaire );  separateur = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( vbox ),		       separateur,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( separateur );  if ( !nb_comptes )    {      gtk_widget_set_sensitive ( entree_adresse_commune,				 FALSE );      gtk_widget_set_sensitive ( entree_adresse_secondaire,				 FALSE );    }  return ( vbox_pref );}