Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1819 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_video.c


Ignore:
Timestamp:
Apr 14, 2004, 1:46:35 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bensch: added flags-frame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bensch/orxonox_gui_video.c

    r1817 r1819  
    11#include "orxonox_gui_video.h"
    22
    3 
    4 
    5 
     3void 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}
    610
    711/* Drawing The VIDEO_FRAME */
     
    1317 
    1418  frame = gtk_frame_new ( "Video-Options:");
     19  gtk_container_set_border_width (GTK_CONTAINER (frame), 5);
     20
    1521  {
    1622    GtkWidget *orxonox_gui_video_vbox;
     
    1824    {
    1925        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));
    2428        gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), fullscreen_button, TRUE, TRUE, 0);
    2529
    2630        wireframe_button = gtk_check_button_new_with_label ("Wireframe-mode");
    2731        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));
    3033        gtk_box_pack_start(GTK_BOX (orxonox_gui_video_vbox), wireframe_button, TRUE, TRUE, 0);
    3134       
Note: See TracChangeset for help on using the changeset viewer.