Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2004, 11:07:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: now the GUI just opens the first time, and the seccond time only if requested by —gui.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc

    r3295 r3296  
    149149  gtk_widget_set_usize (this->widget, width, height);
    150150#endif /* HAVE_GTK2 */
     151}
     152
     153/**
     154   \brief searches through widgets for a Name.
     155*/
     156Widget* Widget::findWidgetByName(char* name, unsigned int depth)
     157{
     158  Widget* tmp = NULL;
     159  if (this->title && !strcmp(this->title, name))
     160    return this;
     161
     162  if (this->isOption < 0 && static_cast<Packer*>(this)->down)
     163    tmp = static_cast<Packer*>(this)->down->findWidgetByName(name, depth+1);
     164  if (tmp)
     165    return tmp;
     166
     167 
     168  if (depth>0 && this->next)
     169    return this->next->findWidgetByName(name, depth);
     170
     171  return NULL;
    151172}
    152173
Note: See TracChangeset for help on using the changeset viewer.