Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3146 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Dec 11, 2004, 2:08:43 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: minor fixes, typo and gtk

Location:
orxonox/trunk/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_flags.cc

    r2605 r3146  
    7777    if  (static_cast<Option*>(widget)->value != static_cast<Option*>(widget)->default_value && (strcmp (static_cast<Option*>(widget)->flag_name, "") || strcmp (static_cast<Option*>(widget)->flag_name_short, "")))
    7878      {
    79         if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(shortFlags->widget)))
     79        if (shortFlags->isActive())
    8080          {
    8181            strcat (flagText, " -");
  • orxonox/trunk/gui/orxonox_gui_gtk.cc

    r3144 r3146  
    203203    }
    204204  else
    205     cout << "!!error!! You try to put more than one Widget into a container. \nNot including this item.\nThis is only possible with Boxes"<<endl;
     205    cout << "!!error!! You try to put more than one Widget into a Container. \nNot including this item.\nThis is only possible with Boxes.\n"<<endl;
    206206}
    207207
     
    592592}
    593593
     594bool CheckButton::isActive()
     595{
     596  return gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
     597}
    594598
    595599/**
  • orxonox/trunk/gui/orxonox_gui_gtk.h

    r3144 r3146  
    205205  void setTitle(char* title);
    206206
     207  bool isActive();
    207208  void redraw ();
    208209};
Note: See TracChangeset for help on using the changeset viewer.