Control* Window::getFocus() throw (WindowException) { TRACE; CSingleLock lock(g_graphicsContext); int iControlId = ref(window)->GetFocusedControlID(); if(iControlId == -1) throw WindowException("No control in this window has focus"); lock.Leave(); return GetControlById(iControlId); }
Control* Window::getFocus() { XBMC_TRACE; SingleLockWithDelayGuard gslock(g_graphicsContext,languageHook); int iControlId = ref(window)->GetFocusedControlID(); if(iControlId == -1) throw WindowException("No control in this window has focus"); // Sine I'm already holding the lock theres no reason to give it to GetFocusedControlID return GetControlById(iControlId,NULL); }
Control* Window::getControl(int iControlId) throw (WindowException) { TRACE; return GetControlById(iControlId); }
Control* Window::getControl(int iControlId) { XBMC_TRACE; DelayedCallGuard dg(languageHook); return GetControlById(iControlId,&g_graphicsContext); }