Changeset 1816 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_audio.c
- Timestamp:
- Apr 13, 2004, 11:26:09 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bensch/orxonox_gui_audio.c
r1813 r1816 1 1 #include "orxonox_gui.h" 2 2 3 GtkWidget *orxonox_gui_audio_frame ( GtkWidget *box)3 GtkWidget *orxonox_gui_audio_frame (void) 4 4 { 5 5 GtkWidget *frame; 6 6 GtkWidget *button; 7 GtkWidget *label; 8 GtkWidget *music_volume_slider; 9 GtkWidget *effects_volume_slider; 7 10 8 11 frame = gtk_frame_new ( "Audio-Options:"); … … 13 16 14 17 button = gtk_check_button_new_with_label ("Enable Sound"); 15 /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_ fullscreen);18 /* gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_audio_Enable_sound); 16 19 */ 17 20 gtk_box_pack_start(GTK_BOX (orxonox_gui_audio_vbox), button, TRUE, TRUE, 0); 21 22 label=gtk_label_new ("Music Volume"); 23 gtk_box_pack_start (GTK_BOX(orxonox_gui_audio_vbox), label, TRUE, TRUE, 0); 24 music_volume_slider = gtk_hscale_new_with_range (0,100,5); 25 /* gtk_range_set_value ( GTK_RANGE (music_volume_slider), compress.video_filter_crop_slider[0]);*/ 26 gtk_range_set_update_policy ( GTK_RANGE (music_volume_slider), GTK_UPDATE_DISCONTINUOUS); 27 /* g_signal_connect (GTK_RANGE (music_volume_slider), "valume_changed", G_CALLBACK (video_filter_crop_slider_changed), GINT_TO_POINTER (0));*/ 28 gtk_box_pack_start ( GTK_BOX (orxonox_gui_audio_vbox), music_volume_slider, TRUE, TRUE, 0); 29 30 label=gtk_label_new ("Effects Volume"); 31 gtk_box_pack_start (GTK_BOX(orxonox_gui_audio_vbox), label, TRUE, TRUE, 0); 32 effects_volume_slider = gtk_hscale_new_with_range (0,100,5); 33 /* gtk_range_set_value ( GTK_RANGE (effects_volume_slider), compress.video_filter_crop_slider[0]);*/ 34 gtk_range_set_update_policy ( GTK_RANGE (effects_volume_slider), GTK_UPDATE_DISCONTINUOUS); 35 /* g_signal_connect (GTK_RANGE (effects_volume_slider), "valume_changed", G_CALLBACK (video_filter_crop_slider_changed), GINT_TO_POINTER (0));*/ 36 gtk_box_pack_start ( GTK_BOX (orxonox_gui_audio_vbox), effects_volume_slider, TRUE, TRUE, 0); 37 18 38 } 19 39 gtk_container_add(GTK_CONTAINER(frame), orxonox_gui_audio_vbox);
Note: See TracChangeset
for help on using the changeset viewer.