rem: GSList *liste_tmp; GtkWidget *dialog; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *scrolled_window; GtkWidget *label; gint action_derniere_ventilation;   dialog = gtk_dialog_new_with_buttons ( _("Confirmation of importation of transactions"), GTK_WINDOW ( window), GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL ); gtk_window_set_transient_for ( GTK_WINDOW ( dialog_recapitulatif ), GTK_WINDOW ( window )); gtk_widget_set_usize ( dialog,
add: GSList *liste_tmp; GtkWidget *dialog; GtkWidget *vbox; GtkWidget *hbox; GtkWidget *scrolled_window; GtkWidget *label; gint action_derniere_ventilation;   dialog = gtk_dialog_new_with_buttons ( _("Confirmation of importation of transactions"), GTK_WINDOW ( window), GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL ); gtk_window_set_transient_for ( GTK_WINDOW ( dialog_recapitulatif ), GTK_WINDOW ( window )); gtk_widget_set_usize ( dialog, FALSE, 300 );  label = gtk_label_new ( _("Some imported transactions seem to be already saved. Please select the transactions to import." )); gtk_box_pack_start ( GTK_BOX ( GTK_DIALOG ( dialog )-> vbox ), label,
context: void confirmation_enregistrement_ope_import ( struct struct_compte_importation *compte_import ){  /*   cette fonction fait le tour des oprations importes, et demande que faire pour celles */  /* qui sont douteuses lors d'un ajout des ops  un compte existant */  GSList *liste_tmp;  GtkWidget *dialog;  GtkWidget *vbox;  GtkWidget *hbox;  GtkWidget *scrolled_window;  GtkWidget *label;  gint action_derniere_ventilation;    dialog = gtk_dialog_new_with_buttons ( _("Confirmation of importation of transactions"),		  		GTK_WINDOW ( window),				GTK_DIALOG_MODAL,			      GTK_STOCK_OK,			      GTK_RESPONSE_OK,			      NULL );  gtk_window_set_transient_for ( GTK_WINDOW ( dialog_recapitulatif ),				GTK_WINDOW ( window ));  gtk_widget_set_usize ( dialog,			 FALSE,			 300 );  label = gtk_label_new ( _("Some imported transactions seem to be already saved. Please select the transactions to import." ));  gtk_box_pack_start ( GTK_BOX ( GTK_DIALOG ( dialog )-> vbox ),		       label,		       FALSE,		       FALSE,		       0 );  gtk_widget_show ( label );  scrolled_window = gtk_scrolled_window_new ( FALSE,					      FALSE );  gtk_scrolled_window_set_policy ( GTK_SCROLLED_WINDOW ( scrolled_window ),				   GTK_POLICY_AUTOMATIC,				   GTK_POLICY_AUTOMATIC );  gtk_box_pack_start ( GTK_BOX ( GTK_DIALOG ( dialog )-> vbox ),		       scrolled_window,		       TRUE,		       TRUE,		       0 );  gtk_widget_show ( scrolled_window );  vbox = gtk_vbox_new ( FALSE,			5 );  gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW ( scrolled_window ),					  vbox );  gtk_container_set_border_width ( GTK_CONTAINER ( vbox ),				   10 );  gtk_widget_show ( vbox );  /*   on fait maintenant le tour des ops importes et affichent celles  problme */  liste_tmp = compte_import -> operations_importees;  while ( liste_tmp )    {      struct struct_ope_importation *ope_import;      ope_import = liste_tmp -> data;       /* on n'affiche pas si c'est des ops de ventil, si la mre est coche, les filles seront alors coches */      if ( ope_import -> action 	      &&		      !ope_import -> ope_de_ventilation )	{	  struct structure_operation *operation;	  gchar *tiers;	  operation = ope_import -> ope_correspondante;	  hbox = gtk_hbox_new ( FALSE,				5 );	  gtk_box_pack_start ( GTK_BOX ( vbox ),			       hbox,			       FALSE,			       FALSE,			       0 );	  gtk_widget_show ( hbox );	  ope_import -> bouton = gtk_check_button_new ();	  gtk_box_pack_start ( GTK_BOX ( hbox ),			       ope_import -> bouton,			       FALSE,			       FALSE,			       0 );	  gtk_widget_show ( ope_import -> bouton );	  label = gtk_label_new ( g_strdup_printf ( _("Transactions to import : %d/%d/%d ; %s ; %4.2f"),						    g_date_day ( ope_import -> date ),						    g_date_month ( ope_import -> date ),						    g_date_year ( ope_import -> date ),						    ope_import -> tiers,						    ope_import -> montant ));	  gtk_box_pack_start ( GTK_BOX ( hbox ),			       label,			       FALSE,			       FALSE,			       0 );	  gtk_widget_show ( label );	  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 ( "       " );	  gtk_box_pack_start ( GTK_BOX ( hbox ),			       label,			       FALSE,			       FALSE,			       0 );	  gtk_widget_show ( label );	  if ( operation -> tiers )	    tiers = ((struct struct_tiers *)(g_slist_find_custom ( liste_struct_tiers,								 GINT_TO_POINTER ( operation -> tiers ),								 (GCompareFunc) recherche_tiers_par_no )->data))->nom_tiers;	  else	    tiers = _("no third party");	  if ( operation -> notes )	    label = gtk_label_new ( g_strdup_printf ( _("Transaction found : %d/%d/%d ; %s ; %4.2f ; %s"),						      g_date_day ( operation -> date ),						      g_date_month ( operation -> date ),						      g_date_year ( operation -> date ),						      tiers,						      operation -> montant,						      operation -> notes ));	  else	    label = gtk_label_new ( g_strdup_printf ( _("Transaction found : %d/%d/%d ; %s ; %4.2f"),						      g_date_day ( operation -> date ),						      g_date_month ( operation -> date ),						      g_date_year ( operation -> date ),						      tiers,						      operation -> montant ));	  gtk_box_pack_start ( GTK_BOX ( hbox ),			       label,			       FALSE,			       FALSE,			       0 );	  gtk_widget_show ( label );	}      liste_tmp = liste_tmp -> next;    }  gtk_dialog_run ( GTK_DIALOG ( dialog ));  /* on fait maintenant le tour des check buttons pour voir ce qu'on importe */  liste_tmp = compte_import -> operations_importees;  action_derniere_ventilation = 1;  while ( liste_tmp )    {      struct struct_ope_importation *ope_import;      ope_import = liste_tmp -> data;       /* si c'est une op de ventil, elle n'tait pas affiche, dans ce cas si l'action de la	      dernire ventil tait 0, on fait de mme pour les filles */             if ( ope_import -> ope_de_ventilation )      {	      if ( ope_import -> action )	      	ope_import -> action = action_derniere_ventilation;      }      else	      action_derniere_ventilation = 1;      if ( ope_import -> bouton	   &&	   gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON ( ope_import -> bouton )))      {	ope_import -> action = 0;       /* si c'tait une ventil on met l'action de la dernire ventil  0 */       	if ( ope_import -> operation_ventilee )		action_derniere_ventilation = 0;	      }     liste_tmp = liste_tmp -> next;    }  gtk_widget_destroy ( dialog );}