rem: 0 );
add: 30 );
context: GtkWidget *cree_element_formulaire_par_no ( gint no_element ){    GtkWidget *widget;    GtkWidget *menu;    if ( !no_element )	return NULL;    widget = NULL;    switch ( no_element )    {	case TRANSACTION_FORM_DATE:	case TRANSACTION_FORM_DEBIT:	case TRANSACTION_FORM_CREDIT:	case TRANSACTION_FORM_VALUE_DATE:	case TRANSACTION_FORM_NOTES:	case TRANSACTION_FORM_CHEQUE:	case TRANSACTION_FORM_VOUCHER:	case TRANSACTION_FORM_BANK:	    widget = gtk_entry_new();	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_EXERCICE:	    /* met l'option menu de l'exercice */	    widget = gtk_option_menu_new ();	    gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tooltips_general_grisbi ),				   widget,				   _("Choose the financial year"),				   _("Choose the financial year") );	    menu = gtk_menu_new ();	    gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget ),				       creation_menu_exercices (0) );	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_PARTY:	    /*  entrée du tiers : c'est une combofix */	    widget = gtk_combofix_new_complex ( liste_tiers_combofix,						FALSE,						TRUE,						TRUE,						0 );	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_CATEGORY:	    /*  Affiche les catégories / sous-catégories */	    widget = gtk_combofix_new_complex ( liste_categories_combofix,						FALSE,						TRUE,						TRUE,						0 );	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_FREE:	    break;	case TRANSACTION_FORM_BUDGET:	    /* Affiche l'imputation budgétaire */	    widget = gtk_combofix_new_complex ( liste_imputations_combofix,						FALSE,						TRUE,						TRUE,						0 );	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_TYPE:	    /* Affiche l'option menu des types */	    widget = gtk_option_menu_new ();	    gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tooltips_general_grisbi ),				   widget,				   _("Choose the method of payment"),				   _("Choose the method of payment") );	    /* le menu par défaut est celui des débits */	    /* 	    le widget ne s'afffiche que s'il y a des types */	    if ( ( menu = creation_menu_types ( 1, gsb_account_get_current_account (), 0 ) ) )	    {		gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget ),					   menu );		gtk_widget_show ( widget );	    }	    break;	case TRANSACTION_FORM_DEVISE:	    /* met l'option menu des devises */	    widget = gtk_option_menu_new ();	    gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tooltips_general_grisbi ),				   widget,				   _("Choose currency"),				   _("Choose currency") );	    menu = creation_option_menu_devises ( -1,						  liste_struct_devises );	    gtk_option_menu_set_menu ( GTK_OPTION_MENU ( widget ),				       menu );	    gtk_option_menu_set_history ( GTK_OPTION_MENU ( widget ),					  g_slist_index ( liste_struct_devises,							  devise_par_no ( gsb_account_get_currency (gsb_account_get_current_account ()) )));	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_CHANGE:	    /* mise en forme du bouton change */	    widget = gtk_button_new_with_label ( _("Change") );	    gtk_button_set_relief ( GTK_BUTTON ( widget ),				    GTK_RELIEF_NONE );	    gtk_signal_connect ( GTK_OBJECT (  widget ),				 "clicked",				 GTK_SIGNAL_FUNC ( click_sur_bouton_voir_change ),				 NULL );	    gtk_widget_show ( widget );	    break;	case TRANSACTION_FORM_CONTRA:	    /* mise en place du type associé lors d'un virement */	    /* non affiché au départ et pas de menu au départ */	    widget = gtk_option_menu_new ();	    gtk_tooltips_set_tip ( GTK_TOOLTIPS ( tooltips_general_grisbi ),				   widget,				   _("Contra-transaction method of payment"),				   _("Contra-transaction method of payment") );	    break;	case TRANSACTION_FORM_OP_NB:	case TRANSACTION_FORM_MODE:	    widget = gtk_label_new ( "" );	    gtk_widget_show ( widget );	    break;    }    if ( widget )    {	if ( GTK_IS_ENTRY ( widget ))	{	    gtk_signal_connect ( GTK_OBJECT ( widget ),				 "focus-in-event",				 GTK_SIGNAL_FUNC ( entree_prend_focus ),				 NULL );	    gtk_signal_connect ( GTK_OBJECT ( widget ),				 "focus-out-event",				 GTK_SIGNAL_FUNC ( entree_perd_focus ),				 GINT_TO_POINTER ( no_element ));	    gtk_signal_connect ( GTK_OBJECT ( widget ),				 "button-press-event",				 GTK_SIGNAL_FUNC ( clique_champ_formulaire ),				 GINT_TO_POINTER ( no_element ));	    gtk_signal_connect ( GTK_OBJECT ( widget ),				 "key-press-event",				 GTK_SIGNAL_FUNC ( touches_champ_formulaire ),				 GINT_TO_POINTER ( no_element ));	}	else	{	    if ( GTK_IS_COMBOFIX ( widget ))	    {		gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX ( widget ) -> entry ),				     "focus-in-event",				     GTK_SIGNAL_FUNC ( entree_prend_focus ),				     NULL );		gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget ) -> entry ),				     "focus-out-event",				     GTK_SIGNAL_FUNC ( entree_perd_focus ),				     GINT_TO_POINTER ( no_element ));		gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget ) -> entry ),				     "button-press-event",				     GTK_SIGNAL_FUNC ( clique_champ_formulaire ),				     GINT_TO_POINTER ( no_element ));		gtk_signal_connect ( GTK_OBJECT ( GTK_COMBOFIX (widget ) -> entry ),				     "key-press-event",				     GTK_SIGNAL_FUNC ( touches_champ_formulaire ),				     GINT_TO_POINTER ( no_element ));	    }	    else		/* ce n'est ni un combofix, ni une entrée */		gtk_signal_connect ( GTK_OBJECT ( widget ),				     "key-press-event",				     GTK_SIGNAL_FUNC ( touches_champ_formulaire ),				     GINT_TO_POINTER ( no_element ));	}    }    return widget;}