deviant | Finalement j'ai trouvé la solution.
Code :
- button = gtk_button_new ();
- gtk_widget_show (button);
- gtk_box_pack_start (GTK_BOX (hbox3), button, TRUE, FALSE, 0);
- g_signal_connect_swapped (G_OBJECT (button), "clicked",
- G_CALLBACK (gtk_widget_destroy),
- G_OBJECT (window));
- alignment = gtk_alignment_new (0.5, 0.5, 0, 0);
- gtk_widget_show (alignment);
- gtk_container_add (GTK_CONTAINER (button), alignment);
- bhbox = gtk_hbox_new (FALSE, 2);
- gtk_widget_show (bhbox);
- gtk_container_add (GTK_CONTAINER (alignment), bhbox);
- image = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_BUTTON);
- gtk_widget_show (image);
- gtk_container_add (GTK_CONTAINER (bhbox), image);
-
- label = gtk_label_new ("Quitter" );
- gtk_widget_show (label);
- gtk_container_add (GTK_CONTAINER (bhbox), label);
|
|