rem: 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 ( valider_ventilation ), NULL ); gtk_box_pack_start ( GTK_BOX ( hbox ), bouton, TRUE, FALSE, 0 ); gtk_widget_show ( bouton );
context: GtkWidget *creation_verification_ventilation ( void ){    GtkWidget *onglet;    GtkWidget *label;    GtkWidget *frame;    GtkWidget *tableau;    GtkWidget *separateur;    GtkWidget *hbox;    GtkWidget *bouton;    /* création de la vbox */    onglet = gtk_vbox_new ( FALSE,			    10 );    gtk_container_set_border_width ( GTK_CONTAINER ( onglet ),				     10 );    gtk_signal_connect ( GTK_OBJECT ( onglet ),			 "key_press_event",			 GTK_SIGNAL_FUNC ( traitement_clavier_liste_ventilation ),			 NULL );    gtk_widget_show ( onglet );    /* création du titre "opération ventilée" */    frame = gtk_frame_new ( NULL );    gtk_box_pack_start ( GTK_BOX ( onglet ),			 frame,			 FALSE,			 FALSE,			 0 );    gtk_widget_show ( frame );    label = gtk_label_new ( _("Breakdown of transaction") );    gtk_container_add ( GTK_CONTAINER ( frame ),			label );    gtk_widget_show ( label );    /* création du tableau */    tableau = gtk_table_new ( 4,			      2,			      FALSE );    gtk_table_set_row_spacings ( GTK_TABLE ( tableau ),				 10 );    gtk_table_set_col_spacings ( GTK_TABLE ( tableau ),				 10 );    gtk_box_pack_start ( GTK_BOX ( onglet ),			 tableau,			 FALSE,			 FALSE,			 20 );    gtk_widget_show ( tableau );    label = gtk_label_new ( COLON(_("Break down amount")) );    gtk_misc_set_alignment ( GTK_MISC ( label ),			     0,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label,		       0, 1,		       0, 1,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label );    label_somme_ventilee = gtk_label_new ( "" );    gtk_misc_set_alignment ( GTK_MISC ( label_somme_ventilee ),			     1,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label_somme_ventilee,		       1, 2,		       0, 1,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label_somme_ventilee );    label = gtk_label_new ( COLON(_("Not assigned")) );    gtk_misc_set_alignment ( GTK_MISC ( label ),			     0,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label,		       0, 1,		       1, 2,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label );    label_non_affecte = gtk_label_new ( "" );    gtk_misc_set_alignment ( GTK_MISC ( label_non_affecte ),			     1,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label_non_affecte,		       1, 2,		       1, 2,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label_non_affecte );    separateur = gtk_hseparator_new ();    gtk_table_attach ( GTK_TABLE ( tableau ),		       separateur,		       0, 2,		       2, 3,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( separateur );    label = gtk_label_new ( COLON(_("Amount")) );    gtk_misc_set_alignment ( GTK_MISC ( label ),			     0,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label,		       0, 1,		       3, 4,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label );    label_montant_operation_ventilee = gtk_label_new ( "" );    gtk_misc_set_alignment ( GTK_MISC ( label_montant_operation_ventilee ),			     1,			     0.5 );    gtk_table_attach ( GTK_TABLE ( tableau ),		       label_montant_operation_ventilee,		       1, 2,		       3, 4,		       GTK_SHRINK | GTK_FILL,		       GTK_SHRINK | GTK_FILL,		       0, 0 );    gtk_widget_show ( label_montant_operation_ventilee );    /* mise en place des boutons */    hbox = gtk_hbox_new ( FALSE,			  10 );    gtk_box_pack_end ( GTK_BOX ( onglet ),		       hbox,		       FALSE,		       FALSE,		       10 );    gtk_widget_show ( hbox );    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 ( valider_ventilation ),			 NULL );    gtk_box_pack_start ( GTK_BOX ( hbox ),			 bouton,			 TRUE,			 FALSE,			 0 );    gtk_widget_show ( bouton );    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 ( annuler_ventilation ),			 NULL );    gtk_box_pack_start ( GTK_BOX ( hbox ),			 bouton,			 TRUE,			 FALSE,			 0 );    gtk_widget_show ( bouton );    separateur = gtk_hseparator_new ();    gtk_box_pack_end ( GTK_BOX ( onglet ),		       separateur,		       FALSE,		       FALSE,		       0 );    gtk_widget_show ( separateur );    return ( onglet );}