Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1993 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 20, 2004, 9:42:34 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui: removed segmentation fault created by not putting a NULL to Window::down

Location:
orxonox/branches/gui/guicc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/guicc/orxonox_gui.cc

    r1983 r1993  
    146146   */
    147147  is_option = -1;
     148  next = NULL;
     149  down = NULL;
    148150  widget = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    149151  gtk_window_set_policy (GTK_WINDOW(widget), TRUE, TRUE, TRUE);
    150   next = NULL;
    151   down = NULL;
    152152}
    153153
     
    158158   */
    159159  is_option = -1;
     160  next = NULL;
     161  down = NULL;
    160162  widget = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    161163  gtk_window_set_policy (GTK_WINDOW (widget), TRUE, TRUE, TRUE);
  • orxonox/branches/gui/guicc/orxonox_gui.h

    r1983 r1993  
    8686
    8787  Widget* down;
    88   void fill (Widget *lowerWidget);
     88  void fill (Widget* lowerWidget);
    8989
    9090};
     
    9898  char* option_name;
    9999  char* flag_name;
     100  char* flag_name_short;
     101  int default_value;
    100102
    101   void setFlagName (char *flagname);
     103  void setFlagName (char* flagname);
    102104};
    103105
     
    114116  CheckButton (char* buttonname);
    115117  ~CheckButton (void);
    116   static gint OptionChange (GtkWidget *widget, Widget* checkbutton);
     118  static gint OptionChange (GtkWidget* widget, Widget* checkbutton);
    117119};
    118120
     
    123125  ~Slider ();
    124126  int i;
    125   static gint OptionChange (GtkWidget *widget, Widget* slider);
     127  static gint OptionChange (GtkWidget* widget, Widget* slider);
    126128};
    127129
     
    132134  ~Menu ();
    133135
    134   static gint OptionChange (GtkWidget *widget, Widget* menu);
     136  static gint OptionChange (GtkWidget* widget, Widget* menu);
    135137};
    136138   
Note: See TracChangeset for help on using the changeset viewer.