1 | #include "orxonox_gui.h" |
---|
2 | |
---|
3 | GtkWidget *orxonox_gui_exec_frame (void) |
---|
4 | { |
---|
5 | GtkWidget *frame; |
---|
6 | GtkWidget *save_button; |
---|
7 | GtkWidget *show_button; |
---|
8 | GtkWidget *start_button; |
---|
9 | GtkWidget *quit_button; |
---|
10 | |
---|
11 | frame = gtk_frame_new ( "Execute-Tags:"); |
---|
12 | { |
---|
13 | GtkWidget *orxonox_gui_exec_vbox; |
---|
14 | orxonox_gui_exec_vbox = gtk_vbox_new (FALSE, 0); |
---|
15 | { |
---|
16 | |
---|
17 | start_button = gtk_button_new_with_label ("Start"); |
---|
18 | /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_fullscreen); |
---|
19 | */ |
---|
20 | gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), start_button, TRUE, TRUE, 5); |
---|
21 | |
---|
22 | save_button = gtk_check_button_new_with_label ("Save Settings"); |
---|
23 | /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_audio_Enable_sound); |
---|
24 | */ |
---|
25 | gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), save_button, TRUE, TRUE, 0); |
---|
26 | |
---|
27 | show_button = gtk_check_button_new_with_label ("Always show this Menu"); |
---|
28 | /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_audio_Enable_sound); |
---|
29 | */ |
---|
30 | gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), show_button, TRUE, TRUE, 0); |
---|
31 | |
---|
32 | |
---|
33 | quit_button = gtk_button_new_with_label ("quit"); |
---|
34 | g_signal_connect(GTK_BUTTON(quit_button), "clicked", G_CALLBACK(gtk_main_quit), NULL); |
---|
35 | gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), quit_button, FALSE, FALSE, 5); |
---|
36 | } |
---|
37 | gtk_container_add(GTK_CONTAINER(frame), orxonox_gui_exec_vbox); |
---|
38 | } |
---|
39 | |
---|
40 | return frame; |
---|
41 | |
---|
42 | } |
---|
43 | |
---|