Changeset 1822 in orxonox.OLD for orxonox/branches/bensch
- Timestamp:
- Apr 14, 2004, 2:53:37 AM (21 years ago)
- Location:
- orxonox/branches/bensch
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bensch/orxonox_gui.h
r1819 r1822 7 7 #include <string.h> 8 8 #include <gtk/gtk.h> 9 #include "orxonox_gui_exec.h" 9 10 10 11 gint delete_event ( GtkWidget *widget, GdkEvent *event, gpointer data ); -
orxonox/branches/bensch/orxonox_gui_audio.c
r1821 r1822 6 6 orxonox_flags_update (); 7 7 if (verbose >=1) 8 printf ("%s changed to %i.\n", (char*) gtk_button_get_label(widget), *data);8 printf ("%s changed to %i.\n", gtk_button_get_label(GTK_BUTTON(widget)), *data); 9 9 return; 10 10 } -
orxonox/branches/bensch/orxonox_gui_exec.c
r1821 r1822 2 2 GtkWidget *exec_flags_label; 3 3 struct settings *exec_orxonox_settings; 4 5 void exec_check_button_change(GtkWidget *widget, int* data) 6 { 7 *data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (widget)); 8 orxonox_flags_update (); 9 if (verbose >=1) 10 printf ("%s changed to %i.\n", gtk_button_get_label(GTK_BUTTON(widget)), *data); 11 return; 12 } 13 14 15 4 16 GtkWidget *orxonox_gui_exec_frame (struct settings *orxonox_settings) 5 17 { … … 24 36 save_settings_button = gtk_check_button_new_with_label ("Save Settings"); 25 37 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (save_settings_button), orxonox_settings->exec_save_settings); 38 g_signal_connect(GTK_TOGGLE_BUTTON(save_settings_button), "clicked", G_CALLBACK(exec_check_button_change), &(orxonox_settings->exec_save_settings)); 26 39 gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), save_settings_button, TRUE, TRUE, 0); 27 40 28 41 show_menu_button = gtk_check_button_new_with_label ("Always show this Menu"); 29 42 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (show_menu_button), orxonox_settings->exec_show_menu); 43 g_signal_connect(GTK_TOGGLE_BUTTON(show_menu_button), "clicked", G_CALLBACK(exec_check_button_change), &(orxonox_settings->exec_show_menu)); 30 44 gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), show_menu_button, TRUE, TRUE, 0); 31 45 -
orxonox/branches/bensch/orxonox_gui_exec.h
r1819 r1822 3 3 #include "orxonox_gui.h" 4 4 5 void exec_check_button_change(GtkWidget *widget, int* data); 5 6 GtkWidget *orxonox_gui_exec_frame (struct settings *orxonox_settings); 6 7 char * orxonox_flags_text (struct settings *orxonox_settings, char *exec_flags_text); -
orxonox/branches/bensch/orxonox_gui_video.c
r1820 r1822 3 3 void video_option_change(GtkWidget *widget, int* data) 4 4 { 5 *data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON 5 *data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); 6 6 orxonox_flags_update (); 7 7 if (verbose >=1) 8 printf ("%s changed to %i.\n", gtk_button_get_label( widget), *data);8 printf ("%s changed to %i.\n", gtk_button_get_label(GTK_BUTTON(widget)), *data); 9 9 } 10 10
Note: See TracChangeset
for help on using the changeset viewer.