Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5936 in orxonox.OLD for trunk/src/lib/gui


Ignore:
Timestamp:
Dec 6, 2005, 2:12:18 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some fixes, but still some strange seg-faults in the IniParser/GuiExec-combination :(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gtk_gui/gui_exec.cc

    r5241 r5936  
    254254
    255255/**
    256  * Reads in Configuration Data.
     256 * @brief Reads in Configuration Data.
    257257 * @param widget from which Widget on should be saved.
    258258*/
     
    265265    return;
    266266
    267   iniParser.getFirstSection();
     267  iniParser.firstSection();
    268268  Widget* groupWidget = widget;
    269269  const char* groupName;
     
    272272  while (groupName = iniParser.getCurrentSection())
    273273  {
     274    printf("GROUP:::%s\n", groupName);
    274275    if((groupWidget = locateGroup(widget, groupName, 1))==NULL)
    275276    {
     
    281282      PRINT(0)("Group %s located.\n", static_cast<Packer*>(groupWidget)->groupName);
    282283
    283     iniParser.getFirstVar();
    284     while(iniParser.getCurrentName())
    285     {
    286       varInfo.variableName = iniParser.getCurrentName();
     284    const char* entryName;
     285    iniParser.firstVar();
     286    while(entryName = iniParser.getCurrentName())
     287    {
     288      printf("ENTRY:::%s = %s\n", entryName, iniParser.getCurrentValue());
     289      varInfo.variableName = entryName;
    287290      varInfo.variableValue = iniParser.getCurrentValue();
    288291      groupWidget->walkThrough(this->readFileText, &varInfo, 0);
Note: See TracChangeset for help on using the changeset viewer.