rem: "focus_out_event",
add: "focus-out-event",
context: GtkWidget *creation_formulaire_echeancier ( void ){  GtkWidget *menu;  GtkWidget *item;  GtkTooltips *tips;  GtkWidget *bouton;  GtkWidget *table;  /* on cre le tooltips */  tips = gtk_tooltips_new ();  formulaire_echeancier = gtk_vbox_new ( FALSE,					 5 );  gtk_widget_show ( formulaire_echeancier );  /*   cration de la table */  table = gtk_table_new ( 6,			  4,			  FALSE );  gtk_container_set_border_width ( GTK_CONTAINER ( table ),				   10 );  gtk_table_set_col_spacings ( GTK_TABLE ( table ),			       5 );  gtk_widget_set_usize ( table,			 1,			 FALSE );  gtk_box_pack_start ( GTK_BOX ( formulaire_echeancier ),		       table,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( table );  /* cration du label saisie / modif */  label_saisie_modif = gtk_label_new ( "" );  gtk_table_attach ( GTK_TABLE ( table ),		     label_saisie_modif,		     0, 1,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  /* cration de l'entre de la date */  widget_formulaire_echeancier[0] = gtk_entry_new_with_max_length ( 10 );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[0] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 0 ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[0] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[0]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[0] ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       NULL );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[0],		     1, 2,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[0] );  /* cration du combofix des tiers */  widget_formulaire_echeancier[1] = gtk_combofix_new (  liste_tiers_combofix_echeancier,							FALSE,							TRUE,							TRUE,							0 );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[1] ) -> entry ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 1 ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[1]) -> entry),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[1] ) -> entry ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (1) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[1] ) -> entry ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (1) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[1] ) -> arrow ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (1) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[1],		     2, 3,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[1] );  /* cration de l'entre des dbits */  widget_formulaire_echeancier[2] = gtk_entry_new ();  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[2] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 2 ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[2] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (2) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[2]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[2] ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (2) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[2],		     3, 4,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[2] );  /* cration de l'entre des crdits */  widget_formulaire_echeancier[3] = gtk_entry_new ();  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[3] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 3 ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[3] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (3) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[3]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[3] ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (3) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[3],		     4, 5,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[3] );  /* met l'option menu des devises */  widget_formulaire_echeancier[4] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[4],			 _("Choose currency"),			 _("Choose currency") );  menu = creation_option_menu_devises ( -1,					liste_struct_devises );  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[4] ),			     menu );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[4] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 4 ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[4],		     5, 7,		     0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[4] );  /* Mise en place du menu des comptes */  widget_formulaire_echeancier[5] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[5],			 _("Choose the account"),			 _("Choose the account") );  menu = creation_option_menu_comptes ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[5] ),			     menu );  gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget_formulaire_echeancier[5] ),				0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[5] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER (5) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[5],		     0, 2,		     1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[5] );    /*  Affiche les catgories / sous-catgories */  widget_formulaire_echeancier[6] = gtk_combofix_new_complex ( liste_categories_echeances_combofix,							       FALSE,							       TRUE,							       TRUE,							       0 );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[6] ) -> entry ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 6 ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[6] ) -> entry ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (6) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[6] ) -> arrow ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (6) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[6] ) -> entry ),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[6] ) -> entry ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (6) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[6],		     2, 3,		     1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[6] );  /*   cration de l'entre du chque, non affiche pour le moment */  /*  crer avant l'option menu du type d'op */  widget_formulaire_echeancier[8] = gtk_entry_new();  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[8]), 		       "key_press_event",		       GTK_SIGNAL_FUNC (pression_touche_formulaire_echeancier),		       GINT_TO_POINTER(8) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[8] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (8) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[8]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[8] ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (8) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[8],		     5, 7,		     1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[8] );  /*  Affiche l'option menu des types */  widget_formulaire_echeancier[7] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[7],			 _("Choose the method of payment"),			 _("Choose the method of payment") );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[7] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER(7) );  gtk_table_attach ( GTK_TABLE (table),		     widget_formulaire_echeancier[7],		     3, 5,		     1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  /* le menu par dfaut est celui des dbits */  if ( (menu = creation_menu_types ( 1,				     GPOINTER_TO_INT ( gtk_object_get_data ( GTK_OBJECT ( GTK_OPTION_MENU ( widget_formulaire_echeancier[5] )->menu_item),									     "no_compte" )),				     1 )))    {      p_tab_nom_de_compte_variable = p_tab_nom_de_compte + GPOINTER_TO_INT ( gtk_object_get_data ( GTK_OBJECT ( GTK_OPTION_MENU ( widget_formulaire_echeancier[5] )->menu_item),												   "no_compte" ));            gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[7] ),   				 menu );      gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget_formulaire_echeancier[7] ),   				    cherche_no_menu_type_echeancier ( TYPE_DEFAUT_DEBIT ) );      gtk_widget_show ( widget_formulaire_echeancier[7] );    }  /* met l'option menu de l'exercice */  widget_formulaire_echeancier[9] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[9],			 _("Choose the financial year"),			 _("Choose the financial year") );  menu = gtk_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[9] ),			     creation_menu_exercices (1) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[9]), 		       "key_press_event",		       GTK_SIGNAL_FUNC (pression_touche_formulaire_echeancier),		       GINT_TO_POINTER(9) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[9],		     0, 2,		     2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);    gtk_widget_show ( widget_formulaire_echeancier[9] );    gtk_widget_set_sensitive ( widget_formulaire_echeancier[9],			       etat.utilise_exercice );  /*  Affiche l'imputation budgtaire */  widget_formulaire_echeancier[10] = gtk_combofix_new_complex ( liste_imputations_combofix,								FALSE,								TRUE,								TRUE ,								0);  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[10],		     2, 3,		     2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_signal_connect ( GTK_OBJECT (GTK_COMBOFIX (widget_formulaire_echeancier[10]) -> entry), 		       "key_press_event",		       GTK_SIGNAL_FUNC (pression_touche_formulaire_echeancier),		       GINT_TO_POINTER(10) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget_formulaire_echeancier[10] ) -> entry ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (10) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget_formulaire_echeancier[10] ) -> arrow ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (10) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget_formulaire_echeancier[10]) -> entry ),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_echeancier[10] ) -> entry ), 		       "focus_out_event",		       GTK_SIGNAL_FUNC (entree_perd_focus_echeancier),		       GINT_TO_POINTER (10) );  gtk_widget_show ( widget_formulaire_echeancier[10] );  gtk_widget_set_sensitive ( widget_formulaire_echeancier[10],			     etat.utilise_imputation_budgetaire );  /*  Affiche les infos banque/guichet */  /*    ne pas mettre, mais on rserve encore le widget n */  /* ne pas l'effacer pour respecter les tabulations */  widget_formulaire_echeancier[11] = gtk_entry_new ();/*   gtk_table_attach ( GTK_TABLE ( table ), *//* 		     widget_formulaire_echeancier[11], *//* 		     3, 5, *//* 		     2, 3, *//* 		     GTK_SHRINK | GTK_FILL, *//* 		     GTK_SHRINK | GTK_FILL, *//* 		     0,0); *//*   gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[11] ), *//* 		       "button_press_event", *//* 		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ), *//* 		       GINT_TO_POINTER (11) ); *//*   gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[11]), *//*  		       "key_press_event", *//* 		       GTK_SIGNAL_FUNC (pression_touche_formulaire_echeancier), *//* 		       GINT_TO_POINTER(11) ); *//*   gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[11]), *//* 		       "focus_in_event", *//* 		       GTK_SIGNAL_FUNC (entree_prend_focus), *//* 		       NULL ); *//*   gtk_signal_connect_after ( GTK_OBJECT (widget_formulaire_echeancier[11]), *//*    			     "focus_out_event", *//*    			     GTK_SIGNAL_FUNC ( entree_perd_focus_echeancier ), *//*    			     GINT_TO_POINTER (11) ); *//*   if ( etat.utilise_info_banque_guichet ) *//*     gtk_widget_show (widget_formulaire_echeancier[11]); */  /*   cration de l'entre du no de pice comptable */  /*    ne pas mettre, mais on rserve encore le widget n */  /* ne pas l'effacer pour respecter les tabulations */  widget_formulaire_echeancier[12] = gtk_entry_new();/*   gtk_table_attach ( GTK_TABLE ( table ), *//* 		     widget_formulaire_echeancier[12], *//* 		     5, 7, *//* 		     2, 3, *//* 		     GTK_SHRINK | GTK_FILL, *//* 		     GTK_SHRINK | GTK_FILL, *//* 		     0,0); *//*   gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[12] ), *//* 		       "button_press_event", *//* 		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ), *//* 		       GINT_TO_POINTER (12) ); *//*   gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[12]), *//*  		       "key_press_event", *//* 		       GTK_SIGNAL_FUNC (pression_touche_formulaire_echeancier), *//* 		       GINT_TO_POINTER(12) ); *//*   gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[12]), *//* 		       "focus_in_event", *//* 		       GTK_SIGNAL_FUNC (entree_prend_focus), *//* 		       NULL ); *//*   gtk_signal_connect_after ( GTK_OBJECT (widget_formulaire_echeancier[12]), *//*    			     "focus_out_event", *//*    			     GTK_SIGNAL_FUNC ( entree_perd_focus_echeancier ), *//*    			     GINT_TO_POINTER (12) ); *//*   if ( etat.utilise_piece_comptable ) *//*     gtk_widget_show ( widget_formulaire_echeancier[12] ); */  /* Mise en place du menu automatique/manuel */  widget_formulaire_echeancier[13] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[13],			 _("Automatic/manual scheduled transaction"),			 _("Automatic/manual scheduled transaction") );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[13] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 13 ) );  menu = gtk_menu_new ();  item = gtk_menu_item_new_with_label ( _("Manual"));  gtk_object_set_data ( GTK_OBJECT ( item ),			"auto_man",			GINT_TO_POINTER ( 0 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Automatic"));  gtk_object_set_data ( GTK_OBJECT ( item ),			"auto_man",			GINT_TO_POINTER ( 1 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_widget_show ( item );  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[13] ),			     menu );  gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget_formulaire_echeancier[13] ),				0);  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[13],		     0, 2,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[13] );    /*  Affiche les notes */  widget_formulaire_echeancier[14] = gtk_entry_new ();  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[14] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 14 ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[14] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (14) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[14]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect_after ( GTK_OBJECT (widget_formulaire_echeancier[14]),   			     "focus_out_event",   			     GTK_SIGNAL_FUNC ( entree_perd_focus_echeancier ),   			     GINT_TO_POINTER (14) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[14],		     2, 3,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[14] );  /* Mise en place du menu de la frquence */  widget_formulaire_echeancier[15] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[15],			 _("Frequency"),			 _("Frequency") );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[15] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 15 ) );  menu = gtk_menu_new ();  item = gtk_menu_item_new_with_label ( _("Once"));  gtk_object_set_data ( GTK_OBJECT  ( item ),			"periodicite",			GINT_TO_POINTER ( 0 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( cache_date_limite_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( cache_personnalisation_echeancier ),		       NULL );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Weekly"));  gtk_object_set_data ( GTK_OBJECT  ( item ),			"periodicite",			GINT_TO_POINTER ( 1 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( affiche_date_limite_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( cache_personnalisation_echeancier ),		       NULL );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Monthly"));  gtk_object_set_data ( GTK_OBJECT  ( item ),			"periodicite",			GINT_TO_POINTER ( 2 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( affiche_date_limite_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( cache_personnalisation_echeancier ),		       NULL );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Yearly"));  gtk_object_set_data ( GTK_OBJECT  ( item ),			"periodicite",			GINT_TO_POINTER ( 3 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( affiche_date_limite_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( cache_personnalisation_echeancier ),		       NULL );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Custom"));  gtk_object_set_data ( GTK_OBJECT  ( item ),			"periodicite",			GINT_TO_POINTER ( 4 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( affiche_date_limite_echeancier ),		       NULL );  gtk_signal_connect ( GTK_OBJECT  ( item ),		       "activate",		       GTK_SIGNAL_FUNC ( affiche_personnalisation_echeancier ),		       NULL );  gtk_widget_show ( item );  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[15] ),			     menu );  gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget_formulaire_echeancier[15] ),				0);  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[15],		     3, 4,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[15] );    /*   entre de la date limite, non affiche au dpart */  widget_formulaire_echeancier[16] = gtk_entry_new_with_max_length (11);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[16] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 16 ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[16] ),		       "button_press_event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire_echeancier ),		       GINT_TO_POINTER (16) );  gtk_signal_connect ( GTK_OBJECT (widget_formulaire_echeancier[16]),		       "focus_in_event",		       GTK_SIGNAL_FUNC (entree_prend_focus),		       NULL );  gtk_signal_connect_after ( GTK_OBJECT (widget_formulaire_echeancier[16]),   			     "focus_out_event",   			     GTK_SIGNAL_FUNC ( entree_perd_focus_echeancier ),   			     GINT_TO_POINTER (16) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[16],		     4, 5,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[16] );  /* et la gtk entry quand la frquence est personnalise, non affich au dpart */  widget_formulaire_echeancier[17] = gtk_entry_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[17],			 _("Custom frequency"),			 _("Custom frequency") );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[17] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 17 ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[17],		     5, 6,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[17] );  /* le menu jour / mois / anne */  widget_formulaire_echeancier[18] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_echeancier[18],			 _("Custom frequency"),			 _("Custom frequency") );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_echeancier[18] ),		       "key_press_event",		       GTK_SIGNAL_FUNC ( pression_touche_formulaire_echeancier ),		       GINT_TO_POINTER ( 18 ) );  menu = gtk_menu_new ();  item = gtk_menu_item_new_with_label ( _("Days") );  gtk_object_set_data ( GTK_OBJECT ( item ),			"intervalle_perso",			GINT_TO_POINTER ( 0 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Months") );  gtk_object_set_data ( GTK_OBJECT ( item ),			"intervalle_perso",			GINT_TO_POINTER ( 1 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_widget_show ( item );  item = gtk_menu_item_new_with_label ( _("Years") );  gtk_object_set_data ( GTK_OBJECT ( item ),			"intervalle_perso",			GINT_TO_POINTER ( 2 ));  gtk_menu_append ( GTK_MENU ( menu ),		    item );  gtk_widget_show ( item );  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_echeancier[18] ),			     menu );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_echeancier[18],		     6, 7,		     3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0,0);  gtk_widget_show ( widget_formulaire_echeancier[18] );  /* sparation d'avec les boutons */  separateur_formulaire_echeancier = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( formulaire_echeancier ),		       separateur_formulaire_echeancier,		       FALSE,		       FALSE,		       0 );  if ( etat.affiche_boutons_valider_annuler )    gtk_widget_show ( separateur_formulaire_echeancier );  /* mise en place des boutons */  hbox_valider_annuler_echeance = gtk_hbox_new ( FALSE,						 5 );  gtk_box_pack_start ( GTK_BOX ( formulaire_echeancier ),		       hbox_valider_annuler_echeance,		       FALSE,		       FALSE,		       0 );  if ( etat.affiche_boutons_valider_annuler )    gtk_widget_show ( hbox_valider_annuler_echeance );  /* FIXME */  bouton = gtk_button_new_from_stock (GTK_STOCK_CANCEL);/*   bouton = gnome_stock_button ( GNOME_STOCK_BUTTON_CANCEL ); */  gtk_button_set_relief ( GTK_BUTTON ( bouton ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT ( bouton ),   		       "clicked",   		       GTK_SIGNAL_FUNC ( echap_formulaire_echeancier ),   		       NULL );  gtk_box_pack_end ( GTK_BOX ( hbox_valider_annuler_echeance ),		     bouton,		     FALSE,		     FALSE,		     0 );  gtk_widget_show ( bouton );  /* FIXME */  bouton = gtk_button_new_from_stock (GTK_STOCK_OK);/*   bouton = gnome_stock_button ( GNOME_STOCK_BUTTON_OK ); */  gtk_button_set_relief ( GTK_BUTTON ( bouton ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT ( bouton ),   		       "clicked",   		       GTK_SIGNAL_FUNC ( fin_edition_echeance ),   		       NULL );  gtk_box_pack_end ( GTK_BOX ( hbox_valider_annuler_echeance ),		     bouton,		     FALSE,		     FALSE,		     0 );  gtk_widget_show ( bouton );  /* on associe au formulaire l'adr de l'chance courante */  gtk_object_set_data ( GTK_OBJECT ( formulaire_echeancier ),			"adr_echeance",			NULL );  formulaire_echeancier_a_zero ();  return ( formulaire_echeancier);}