rem: *button_ok, *button_cancel, *button_apply; GtkTreeIter iter;
add: *button_ok, *button_cancel; GtkTreeIter iter, iter2; GtkTreePath * path;
context: void preferences ( GtkWidget *widget,		   gint page_demandee ){  GtkWidget *tree, *right, *w, *vbox, *hbox, *hbox2, *separator,    *button_ok, *button_cancel, *button_apply;  GtkTreeIter iter;  /* cration de la fentre */  fenetre_preferences = gtk_window_new (GTK_WINDOW_TOPLEVEL);  gtk_window_set_title ( GTK_WINDOW ( fenetre_preferences ),			 _("Grisbi setup") );  gtk_window_set_transient_for ( GTK_WINDOW (fenetre_preferences),				 GTK_WINDOW (window));  gtk_window_set_modal ( GTK_WINDOW (fenetre_preferences),			 TRUE);  gtk_container_set_border_width (fenetre_preferences, 10);  tree = create_preferences_tree();    hpaned = gtk_hpaned_new();  gtk_paned_add1(GTK_PANED(hpaned), tree);  preference_frame = gtk_hpaned_new ();  gtk_paned_add2(GTK_PANED(hpaned), preference_frame);  /* On arange le tout dans une vbox */  vbox = gtk_vbox_new ( FALSE, 10 );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       hpaned,		       FALSE,		       FALSE,		       0);  /* Avec un spareteur entre le haut et les boutons */  separator = gtk_hseparator_new ();  gtk_box_pack_start ( GTK_BOX ( vbox ),		       separator,		       FALSE,		       FALSE,		       0 );    /* Cration des boutons en bas */  hbox = gtk_hbox_new ( FALSE, 10 );/*   button_ok = gtk_button_new_with_label (_("OK")); *//*   button_cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL); *//*   button_apply = gtk_button_new_with_label (_("Apply")); */  button_ok = gtk_button_new_from_stock (GTK_STOCK_OK);  button_cancel = gtk_button_new_from_stock (GTK_STOCK_CANCEL);  button_apply = gtk_button_new_from_stock (GTK_STOCK_APPLY);  hbox2 = gtk_hbox_new ( TRUE, 5 );  gtk_box_pack_end ( GTK_BOX ( hbox2 ), button_ok,		     TRUE, TRUE, 0 );  gtk_box_pack_end ( GTK_BOX ( hbox2 ), button_cancel,		     TRUE, TRUE, 0 );  gtk_box_pack_end ( GTK_BOX ( hbox2 ), button_apply,		     TRUE, TRUE, 0 );  gtk_box_pack_end ( GTK_BOX ( hbox ), hbox2,		       FALSE, FALSE, 0 );  gtk_box_pack_start ( GTK_BOX ( vbox ),		       hbox,		       FALSE,		       FALSE,		       0 );  gtk_container_add (GTK_CONTAINER (fenetre_preferences), vbox);  /* on cre le premier onglet : Gnral */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  w = onglet_general();  printf ("Main: %p\n", w);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Main"),		      1, w,		      -1);  /* cration du 2me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  w = onglet_fichier();  printf ("Files: %p\n", w);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Files"),		      1, w,		      -1);  /* cration du 3me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Scheduler"),		      1, onglet_echeances(),		      -1);  /* cration du 4me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Display"),		      1, onglet_affichage(),		      -1);  /* cration du 5me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Applet"),		      1, onglet_applet(),		      -1);  /* cration du 6me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Currencies"),		      1, onglet_devises(),		      -1);  /* cration du 7me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Banks"),		      1, onglet_banques(),		      -1);  /* cration du 9me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Financial years"),		      1, onglet_exercices(),		      -1);  /* cration du 10me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Methods of payment"),		      1, onglet_types_operations(),		      -1);  /* cration du 10me onglet */  gtk_tree_store_append (GTK_TREE_STORE (preference_tree_model), &iter, NULL);  gtk_tree_store_set (GTK_TREE_STORE (preference_tree_model),		      &iter,		      0, _("Informations"),		      1, onglet_affichage_liste(),		      -1);  /* connection du bouton appliquer */  gtk_signal_connect ( GTK_OBJECT ( button_apply ),		       "clicked",		       (GtkSignalFunc) changement_preferences,		       NULL );  gtk_signal_connect ( GTK_OBJECT ( button_cancel ),		       "clicked",		       (GtkSignalFunc) fermeture_preferences,		       NULL );  gtk_signal_connect ( GTK_OBJECT ( button_ok ),		       "clicked",		       (GtkSignalFunc) changement_preferences,		       NULL );  gtk_signal_connect_after ( GTK_OBJECT ( button_ok ),		       "clicked",		       (GtkSignalFunc) fermeture_preferences,		       NULL );/* on se met sur la page demande */  gtk_tree_model_iter_nth_child (preference_tree_model,				 &iter,				 NULL,				 page_demandee);  gtk_tree_selection_select_iter (selection, &iter);  gtk_widget_show_all ( fenetre_preferences );}