rem: gtk_entry_set_text ( GTK_ENTRY ( nom_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( code_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( adr_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( tel_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( email_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( web_banque ), "" ); gtk_entry_set_text ( GTK_ENTRY ( nom_correspondant ), "" ); gtk_entry_set_text ( GTK_ENTRY ( tel_correspondant ), "" ); gtk_entry_set_text ( GTK_ENTRY ( fax_correspondant ), "" ); gtk_entry_set_text ( GTK_ENTRY ( email_correspondant ), "" ); gtk_editable_delete_text ( GTK_EDITABLE ( adr_banque ), 0, -1 ); gtk_editable_delete_text ( GTK_EDITABLE ( remarque_banque ), 0, -1 );
add: entry_set_value ( nom_banque, NULL ); entry_set_value ( code_banque, NULL ); entry_set_value ( tel_banque, NULL ); entry_set_value ( email_banque, NULL ); entry_set_value ( web_banque, NULL ); entry_set_value ( nom_correspondant, NULL ); entry_set_value ( tel_correspondant, NULL ); entry_set_value ( fax_correspondant, NULL ); entry_set_value ( email_correspondant, NULL ); gtk_text_buffer_set_text (gtk_text_view_get_buffer(GTK_TEXT_VIEW(adr_banque)), "", -1); gtk_text_buffer_set_text (gtk_text_view_get_buffer(GTK_TEXT_VIEW(remarque_banque)), "", -1);
context: void deselection_ligne_banque ( GtkWidget *liste,				gint ligne,				gint colonne,				GdkEventButton *ev,				GtkWidget *frame ){  struct struct_banque *banque;/*   applique_modif_banque ( liste ); *//*       else *//* 	{ *//* 	  if ( banque -> no_banque == -1 ) *//* 	    { *//* 	      gtk_clist_remove ( GTK_CLIST ( liste ), *//* 				 ligne ); *//* 	      liste_struct_banques_tmp = g_slist_remove ( liste_struct_banques_tmp, *//* 							  banque ); *//* 	      free ( banque ); *//* 	    } *//* 	} *//*     } */  /* Empty all fields */  gtk_entry_set_text ( GTK_ENTRY ( nom_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( code_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( adr_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( tel_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( email_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( web_banque ), "" );  gtk_entry_set_text ( GTK_ENTRY ( nom_correspondant ), "" );  gtk_entry_set_text ( GTK_ENTRY ( tel_correspondant ), "" );  gtk_entry_set_text ( GTK_ENTRY ( fax_correspondant ), "" );  gtk_entry_set_text ( GTK_ENTRY ( email_correspondant ), "" );  gtk_editable_delete_text ( GTK_EDITABLE ( adr_banque ), 0, -1 );  gtk_editable_delete_text ( GTK_EDITABLE ( remarque_banque ), 0, -1 );  gtk_widget_set_sensitive ( frame, FALSE );}