Changeset 3296 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
- Timestamp:
- Dec 26, 2004, 11:07:25 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc
r3295 r3296 149 149 gtk_widget_set_usize (this->widget, width, height); 150 150 #endif /* HAVE_GTK2 */ 151 } 152 153 /** 154 \brief searches through widgets for a Name. 155 */ 156 Widget* 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; 151 172 } 152 173
Note: See TracChangeset
for help on using the changeset viewer.