Quit button
This commit is contained in:
parent
2fb2456d8d
commit
334d83ed08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue