rem: gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),
add: gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),
context: GtkWidget *creation_formulaire ( void ){  GtkWidget *table;  GtkWidget *menu;  GtkWidget *bouton;  GdkColor couleur_normale;  GdkColor couleur_grise;  GtkTooltips *tips;  /* On cre tout de suite les styles qui seront appliqus aux entres du formulaire : */  /*     style_entree[0] sera la couleur noire, normale */  /*     Style_entree[1] sera une couleur attnue quand le formulaire est vide */  couleur_normale.red = COULEUR_NOIRE_RED;  couleur_normale.green = COULEUR_NOIRE_GREEN;  couleur_normale.blue = COULEUR_NOIRE_BLUE;  couleur_grise.red = COULEUR_GRISE_RED;  couleur_grise.green = COULEUR_GRISE_GREEN;  couleur_grise.blue = COULEUR_GRISE_BLUE;  /* on cre le tooltips */  tips = gtk_tooltips_new ();  /* le formulaire est une vbox avec en haut un tableau de 6 colonnes, et */  /* en bas si demand les boutons valider et annuler */  formulaire = gtk_vbox_new ( FALSE, 5 );  style_entree_formulaire[0] = gtk_style_new();  style_entree_formulaire[0] -> text[GTK_STATE_NORMAL] = couleur_normale;  style_entree_formulaire[1] = gtk_style_new();  style_entree_formulaire[1] -> text[GTK_STATE_NORMAL] = couleur_grise;  g_object_ref ( style_entree_formulaire[0] );  g_object_ref ( style_entree_formulaire[1] );  /* le formulaire est une table de 4 lignes et 7 colonnes */  table = gtk_table_new ( 4, 7, FALSE );  gtk_table_set_col_spacings ( GTK_TABLE ( table ),			       10 );  gtk_box_pack_start ( GTK_BOX ( formulaire ),		       table,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( table );  /* met la taille du formulaire  1 au dbut pour viter un agrandissement     automatique de la fentre d aux tailles par dfaut des entres.     Cette taille sera modifie automatiquement  l'affichage. */  gtk_widget_set_usize ( GTK_WIDGET ( table ),			 1,			 FALSE );  /* no d'op */  widget_formulaire_operations[TRANSACTION_FORM_OP_NB] = gtk_label_new ( "" );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_OP_NB],		     0, 1, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  if ( etat.affiche_no_operation )    gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_OP_NB] );  /* entre de la date */  widget_formulaire_operations[TRANSACTION_FORM_DATE] = gtk_entry_new();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_DATE],		     1, 2, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DATE] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DATE ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DATE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DATE ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DATE] ),		       "focus-in-event",		       GTK_SIGNAL_FUNC ( entree_prend_focus ),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DATE] ),		       "focus-out-event",		       GTK_SIGNAL_FUNC ( entree_perd_focus ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DATE ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_DATE] );  /*  entre du tiers : c'est une combofix */  creation_liste_tiers_combofix();  widget_formulaire_operations[TRANSACTION_FORM_PARTY] = gtk_combofix_new_complex ( liste_tiers_combofix,							       FALSE,							       TRUE,							       TRUE,							       0 );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_PARTY],		     2, 3, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ) -> entry ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_PARTY ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ) -> arrow ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_PARTY ) );  gtk_signal_connect_object ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ) -> entry ),			      "focus-in-event",			      GTK_SIGNAL_FUNC ( entree_prend_focus ),			      GTK_WIDGET ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ));  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ) -> entry ),		       "focus-out-event",		       GTK_SIGNAL_FUNC ( entree_perd_focus ),		       GINT_TO_POINTER ( TRANSACTION_FORM_PARTY ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] ) -> entry ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_PARTY ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_PARTY] );  /*  Affiche le dbit */  widget_formulaire_operations[TRANSACTION_FORM_DEBIT] = gtk_entry_new ();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_DEBIT],		     3, 4, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DEBIT] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DEBIT ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DEBIT] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DEBIT ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DEBIT] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DEBIT] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_DEBIT ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_DEBIT] );  /*  Affiche le crdit */  widget_formulaire_operations[TRANSACTION_FORM_CREDIT] = gtk_entry_new ();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_CREDIT],		     4, 5, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CREDIT] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CREDIT ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CREDIT] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CREDIT ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CREDIT] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CREDIT] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_CREDIT ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_CREDIT] );  /* met l'option menu des devises */  widget_formulaire_operations[TRANSACTION_FORM_DEVISE] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_operations[TRANSACTION_FORM_DEVISE],			 _("Choose currency"),			 _("Choose currency") );  menu = creation_option_menu_devises ( -1,					liste_struct_devises );  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_operations[TRANSACTION_FORM_DEVISE] ),			     menu );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_DEVISE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_DEVISE ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_DEVISE],		     5, 6, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_DEVISE] );  /* mise en forme du bouton change */  widget_formulaire_operations[TRANSACTION_FORM_CHANGE] = gtk_button_new_with_label ( _("Change") );  gtk_button_set_relief ( GTK_BUTTON ( widget_formulaire_operations[TRANSACTION_FORM_CHANGE] ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT (  widget_formulaire_operations[TRANSACTION_FORM_CHANGE] ),		       "clicked",		       GTK_SIGNAL_FUNC ( click_sur_bouton_voir_change ),		       NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CHANGE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CHANGE ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_CHANGE],		     6, 7, 0, 1,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_CHANGE] );  /* mise en place de la date de valeur */  widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] = gtk_entry_new();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE],		     1, 2, 1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_VALUE_DATE )  );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_VALUE_DATE )  );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] ),		       "focus-in-event",		       GTK_SIGNAL_FUNC ( entree_prend_focus ),		       NULL );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] ),		       "focus-out-event",		       GTK_SIGNAL_FUNC ( entree_perd_focus ),		       GINT_TO_POINTER ( TRANSACTION_FORM_VALUE_DATE ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE] );  gtk_widget_set_sensitive ( widget_formulaire_operations[TRANSACTION_FORM_VALUE_DATE],			     etat.affiche_date_bancaire );  /*  Affiche les catgories / sous-catgories */  widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] = gtk_combofix_new_complex ( liste_categories_combofix,										       FALSE,										       TRUE,										       TRUE,										       0 );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_CATEGORY],		     2, 3, 1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ) -> entry ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CATEGORY ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ) -> arrow ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CATEGORY ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ) -> entry ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CATEGORY ) );  gtk_signal_connect_object ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ) -> entry ),			      "focus-in-event",			      GTK_SIGNAL_FUNC ( entree_prend_focus ),			      GTK_WIDGET ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ));  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] ) -> entry ),		       "focus-out-event",		       GTK_SIGNAL_FUNC ( entree_perd_focus ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CATEGORY ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_CATEGORY] );  /*   cration de l'entre du chque, non affiche pour le moment */  /*  crer avant l'option menu du type d'op */  widget_formulaire_operations[TRANSACTION_FORM_CHEQUE] = gtk_entry_new();  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CHEQUE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CHEQUE ) );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CHEQUE] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_CHEQUE ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CHEQUE] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CHEQUE] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_CHEQUE ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_CHEQUE],		     5, 7, 1, 2,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  /*  Affiche l'option menu des types */  widget_formulaire_operations[TRANSACTION_FORM_TYPE] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_operations[TRANSACTION_FORM_TYPE],			 _("Choose the method of payment"),			 _("Choose the method of payment") );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_TYPE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_TYPE ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_TYPE],		     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, compte_courant, 0 ) ) )    {      p_tab_nom_de_compte_variable = p_tab_nom_de_compte_courant;      gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_operations[TRANSACTION_FORM_TYPE] ),				 menu );      gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget_formulaire_operations[TRANSACTION_FORM_TYPE] ),				    cherche_no_menu_type ( TYPE_DEFAUT_DEBIT ) );      gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_TYPE] );    }  /* met l'option menu de l'exercice */  widget_formulaire_operations[TRANSACTION_FORM_EXERCICE] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_operations[TRANSACTION_FORM_EXERCICE],			 _("Choose the financial year"),			 _("Choose the financial year") );  menu = gtk_menu_new ();  gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget_formulaire_operations[TRANSACTION_FORM_EXERCICE] ),			     creation_menu_exercices (0) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_EXERCICE] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_EXERCICE ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_EXERCICE],		     0, 2, 2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_EXERCICE] );  gtk_widget_set_sensitive ( widget_formulaire_operations[TRANSACTION_FORM_EXERCICE],			     etat.utilise_exercice );  /*  Affiche l'imputation budgtaire */  widget_formulaire_operations[TRANSACTION_FORM_BUDGET] = gtk_combofix_new_complex ( liste_imputations_combofix,										     FALSE,										     TRUE,										     TRUE,										     0 );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_BUDGET],		     2, 3, 2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) -> entry ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BUDGET ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) -> arrow ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BUDGET ) );  gtk_signal_connect_after ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) -> entry ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BUDGET ) );  gtk_signal_connect_object ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) -> entry ),			      "focus-in-event",			      GTK_SIGNAL_FUNC ( entree_prend_focus ),			      GTK_WIDGET ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) );  gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] ) -> entry ),		       "focus-out-event",		       GTK_SIGNAL_FUNC ( entree_perd_focus ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BUDGET ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET] );  gtk_widget_set_sensitive ( widget_formulaire_operations[TRANSACTION_FORM_BUDGET],			     etat.utilise_imputation_budgetaire );    /* mise en place du type associ lors d'un virement */  /* non affich au dpart et pas de menu au dpart */  widget_formulaire_operations[TRANSACTION_FORM_CONTRA] = gtk_option_menu_new ();  gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tips ),			 widget_formulaire_operations[TRANSACTION_FORM_CONTRA],			 _("Contra-transaction method of payment"),			 _("Contra-transaction method of payment") );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_CONTRA] ),			     "key-press-event",			     GTK_SIGNAL_FUNC ( touches_champ_formulaire ),			     GINT_TO_POINTER ( TRANSACTION_FORM_CONTRA ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_CONTRA],		     3, 5, 2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  /* cration de l'entre du no de pice comptable */  widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] = gtk_entry_new();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_VOUCHER],		     5, 7, 2, 3,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_VOUCHER ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] ),			     "key-press-event",			     GTK_SIGNAL_FUNC ( touches_champ_formulaire ),			     GINT_TO_POINTER ( TRANSACTION_FORM_VOUCHER ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_VOUCHER ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER] );  gtk_widget_set_sensitive ( widget_formulaire_operations[TRANSACTION_FORM_VOUCHER],			     etat.utilise_piece_comptable );  /* mise en forme du bouton ventilation */  widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN] = gtk_button_new_with_label ( _("Breakdown") );  gtk_button_set_relief ( GTK_BUTTON ( widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN] ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN] ),		       "clicked",		       GTK_SIGNAL_FUNC ( basculer_vers_ventilation ),		       NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BREAKDOWN ) );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN],		     0, 2, 3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_BREAKDOWN] );  /*  Affiche les notes */  widget_formulaire_operations[TRANSACTION_FORM_NOTES] = gtk_entry_new ();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_NOTES],		     2, 3, 3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_NOTES ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),			     "key-press-event",			     GTK_SIGNAL_FUNC ( touches_champ_formulaire ),			     GINT_TO_POINTER ( TRANSACTION_FORM_NOTES ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_NOTES ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_NOTES] );  /*  Affiche les infos banque/guichet */  widget_formulaire_operations[TRANSACTION_FORM_BANK] = gtk_entry_new ();  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_BANK],		     3, 6, 3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_signal_connect ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BANK] ),		       "button-press-event",		       GTK_SIGNAL_FUNC ( clique_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BANK ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BANK] ),		       "key-press-event",		       GTK_SIGNAL_FUNC ( touches_champ_formulaire ),		       GINT_TO_POINTER ( TRANSACTION_FORM_BANK ) );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BANK] ),			     "focus-in-event",			     GTK_SIGNAL_FUNC ( entree_prend_focus ),			     NULL );  gtk_signal_connect_after ( GTK_OBJECT ( widget_formulaire_operations[TRANSACTION_FORM_BANK] ),			     "focus-out-event",			     GTK_SIGNAL_FUNC ( entree_perd_focus ),			     GINT_TO_POINTER ( TRANSACTION_FORM_BANK ) );  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_BANK] );  gtk_widget_set_sensitive ( widget_formulaire_operations[TRANSACTION_FORM_BANK],			     etat.utilise_info_banque_guichet );  /*  Affiche le mode automatique / manuel  */  widget_formulaire_operations[TRANSACTION_FORM_MODE] = gtk_label_new ( "" );  gtk_table_attach ( GTK_TABLE ( table ),		     widget_formulaire_operations[TRANSACTION_FORM_MODE],		     6, 7, 3, 4,		     GTK_SHRINK | GTK_FILL,		     GTK_SHRINK | GTK_FILL,		     0, 0);  gtk_widget_show ( widget_formulaire_operations[TRANSACTION_FORM_MODE] );  /* sparation d'avec les boutons */  separateur_formulaire_operations = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( formulaire ),		       separateur_formulaire_operations,		       FALSE,		       FALSE,		       0 );  if ( etat.affiche_boutons_valider_annuler )    gtk_widget_show ( separateur_formulaire_operations );  /* mise en place des boutons */  hbox_valider_annuler_ope = gtk_hbox_new ( FALSE,					    5 );  gtk_box_pack_start ( GTK_BOX ( formulaire ),		       hbox_valider_annuler_ope,		       FALSE,		       FALSE,		       0 );  if ( etat.affiche_boutons_valider_annuler )    gtk_widget_show ( hbox_valider_annuler_ope );  bouton = gtk_button_new_from_stock ( GTK_STOCK_CANCEL );  gtk_button_set_relief ( GTK_BUTTON ( bouton ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT ( bouton ),		       "clicked",		       GTK_SIGNAL_FUNC ( echap_formulaire ),		       NULL );  gtk_box_pack_end ( GTK_BOX ( hbox_valider_annuler_ope ),		     bouton,		     FALSE,		     FALSE,		     0 );  gtk_widget_show ( bouton );  bouton = gtk_button_new_from_stock ( GTK_STOCK_OK );  gtk_button_set_relief ( GTK_BUTTON ( bouton ),			  GTK_RELIEF_NONE );  gtk_signal_connect ( GTK_OBJECT ( bouton ),		       "clicked",		       GTK_SIGNAL_FUNC ( fin_edition ),		       NULL );  gtk_box_pack_end ( GTK_BOX ( hbox_valider_annuler_ope ),		     bouton,		     FALSE,		     FALSE,		     0 );  gtk_widget_show ( bouton );  /* aucune opration associe au formulaire */  gtk_object_set_data ( GTK_OBJECT ( table ),			"adr_struct_ope",			NULL );  gtk_object_set_data ( GTK_OBJECT ( table ),			"liste_adr_ventilation",			NULL );  return ( formulaire );}