Quit button

This commit is contained in:
Kolan Sh 2012-10-25 11:29:46 +04:00
parent 2fb2456d8d
commit 334d83ed08
1 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,13 @@ int main( int argc,
* recommend showing the window last, so it all pops up at once. */
gtk_widget_show (button);
/* Add quiet button */
button = gtk_button_new_with_label ("Quit");
g_signal_connect_swapped (G_OBJECT (button), "clicked",
G_CALLBACK (delete_event), G_OBJECT (window));
gtk_box_pack_start (GTK_BOX (box1), button, TRUE, TRUE, 0);
gtk_widget_show (button);
gtk_widget_show (box1);
gtk_widget_show (window);