Changeset 1819 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_video.c
- Timestamp:
- Apr 14, 2004, 1:46:35 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bensch/orxonox_gui_video.c
r1817 r1819 1 1 #include "orxonox_gui_video.h" 2 2 3 4 5 3 void video_option_change(GtkWidget *widget, gpointer data) 4 { 5 data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (widget)); 6 orxonox_flags_update (); 7 if (verbose >=1) 8 printf ("%s changed to %i.\n", gtk_button_get_label(widget), data); 9 } 6 10 7 11 /* Drawing The VIDEO_FRAME */ … … 13 17 14 18 frame = gtk_frame_new ( "Video-Options:"); 19 gtk_container_set_border_width (GTK_CONTAINER (frame), 5); 20 15 21 { 16 22 GtkWidget *orxonox_gui_video_vbox; … … 18 24 { 19 25 fullscreen_button = gtk_check_button_new_with_label ("Fullscreen-mode"); 20 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (fullscreen_button), orxonox_settings->video_fullscreen); 21 22 /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_fullscreen); 23 */ 26 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (fullscreen_button), orxonox_settings->video_fullscreen); 27 g_signal_connect(GTK_TOGGLE_BUTTON(fullscreen_button), "clicked", G_CALLBACK(video_option_change), &(orxonox_settings->video_fullscreen)); 24 28 gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), fullscreen_button, TRUE, TRUE, 0); 25 29 26 30 wireframe_button = gtk_check_button_new_with_label ("Wireframe-mode"); 27 31 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wireframe_button), orxonox_settings->video_wireframe); 28 /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_video_Wireframe); 29 */ 32 g_signal_connect(GTK_TOGGLE_BUTTON(wireframe_button), "clicked", G_CALLBACK(video_option_change), &(orxonox_settings->video_wireframe)); 30 33 gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), wireframe_button, TRUE, TRUE, 0); 31 34
Note: See TracChangeset
for help on using the changeset viewer.