Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1822 in orxonox.OLD for orxonox/branches/bensch


Ignore:
Timestamp:
Apr 14, 2004, 2:53:37 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bensch: hmm… little typo… it simply was too late for me

Location:
orxonox/branches/bensch
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bensch/orxonox_gui.h

    r1819 r1822  
    77#include <string.h>
    88#include <gtk/gtk.h>
     9#include "orxonox_gui_exec.h"
    910
    1011gint delete_event ( GtkWidget *widget, GdkEvent *event, gpointer data );
  • orxonox/branches/bensch/orxonox_gui_audio.c

    r1821 r1822  
    66  orxonox_flags_update ();
    77  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);
    99  return;
    1010}
  • orxonox/branches/bensch/orxonox_gui_exec.c

    r1821 r1822  
    22GtkWidget *exec_flags_label;
    33struct settings *exec_orxonox_settings;
     4
     5void 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
    416GtkWidget *orxonox_gui_exec_frame (struct settings *orxonox_settings)
    517{
     
    2436        save_settings_button = gtk_check_button_new_with_label ("Save Settings");
    2537        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));
    2639        gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), save_settings_button, TRUE, TRUE, 0);
    2740
    2841        show_menu_button = gtk_check_button_new_with_label ("Always show this Menu");
    2942        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));
    3044        gtk_box_pack_start(GTK_BOX (orxonox_gui_exec_vbox), show_menu_button, TRUE, TRUE, 0);
    3145       
  • orxonox/branches/bensch/orxonox_gui_exec.h

    r1819 r1822  
    33#include "orxonox_gui.h"
    44
     5void exec_check_button_change(GtkWidget *widget, int* data);
    56GtkWidget *orxonox_gui_exec_frame (struct settings *orxonox_settings);
    67char * orxonox_flags_text (struct settings *orxonox_settings, char *exec_flags_text);
  • orxonox/branches/bensch/orxonox_gui_video.c

    r1820 r1822  
    33void video_option_change(GtkWidget *widget, int* data)
    44{
    5   *data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (widget));
     5  *data = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
    66  orxonox_flags_update ();
    77  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);
    99}
    1010
Note: See TracChangeset for help on using the changeset viewer.